From mboxrd@z Thu Jan 1 00:00:00 1970 From: Umut Aymakoglu Date: Tue, 16 Sep 2003 23:05:53 +0000 Subject: text base address of a library Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org 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