text base address of a library

From: Umut Aymakoglu <umuta_at_us.ibm.com>
Date: 2003-09-17 09:05:53
Hi -
  Is there a way(function) to find the text base address of a loaded
library?

a.c:
 main()
{
  b();
}

b.c:
b()
{}

%gcc -c b.c
%gcc -shared -o b.sl b.o
%gcc -o a a.c ./b.sl

%ldd a
./c.sl => ./c.sl (0x2000000000044000)  <----------  how can i find this
address within a program?


thanks,
Umut

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Sep 16 19:05:55 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:17 EST