From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4391 invoked from network); 5 Aug 1998 22:50:48 -0000 Received: from stefan.sime.com (193.228.80.247) by mail2.redhat.com with SMTP; 5 Aug 1998 22:50:48 -0000 Received: (from stefan@localhost) by stefan.sime.com (8.8.7/8.8.7) id AAA01063; Thu, 6 Aug 1998 00:48:35 +0200 Date: Thu, 6 Aug 1998 00:48:35 +0200 Message-Id: <199808052248.AAA01063@stefan.sime.com> From: Quant-X Alpha Linux Support To: Eric Ding CC: axp-list@redhat.com In-reply-to: message from Eric Ding on Wed, 05 Aug 1998 12:16:57 -0400 Subject: Re: BUG: probs with resolving functions in shared library MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: Quant-X Alpha Linux Support Reply-To: Quant-X Alpha Linux Support Organization: Quant-X Service & Consulting Ges.m.b.H. X-Mailer: GNU Emacs 20.2.1 C-x m (X11 ; I; Linux 2.1.113 i586) References: Hi Eric ! > gcc -shared -Xlinker -Bsymbolic -Xlinker --noinhibit-exec -o libtest2.so \ > test2.o test3.o I don't know if it helps: ld -shared -Bdynamic --noinhibit-exec -o libtest2.so test2.o test3.o works here as expected. (The difference is only that I'm using -Bdynamic instead of -Bsymbolic) It is a bug. But ok so. If you want -Bdynamic work as the specs say, you need to compile the main program (!) with -Xlinker -export-dynamic. If you do this, you get the "OOPS!". Hope it helps. ciao - Stefan -- Quant-X Service & Ph: (+43) 4212 6004-0 Consulting Ges.m.b.H. Fax: (+43) 4212 600420 http://www.quant-x.com Email: support@quant-x.com