linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ld bug with -Bsymbolic --noinhibit-exec (2.9.1.0.990418-1c)
@ 1999-06-16 16:29 Eric Ding
  1999-06-16 17:21 ` Franz Sirl
  0 siblings, 1 reply; 13+ messages in thread
From: Eric Ding @ 1999-06-16 16:29 UTC (permalink / raw)
  To: linuxppc-dev


Hi,

I'm developing on LinuxPPC R5, with egcs-1.1.2-12c and
binutils-2.9.1.0.990418-1c installed.  I'm running into a problem with
using the -Bsymbolic flag.  Building a shared library which references
global symbols that are not found in it, we usually use the
--noinhibit-exec flag so that shared library builds even without those
symbols being bound.

The build command looks like this:

    gcc -shared -Wl,-v -Wl,-Bsymbolic -Wl,--noinhibit-exec -o \
     /ax/axexec/axdata/axshlib/libaxel.so -L/ax/axexec/axdata/axshlib \
     -L/ax/axobj/axdata/rts elimports.o elexports.o \
     /ax/axobj/axdata/rts/axel.o

Without the -Bsymbolic flag, the shared library builds fine.  With the
flag, however, it spits out the following errors (which are expected):

GNU ld version 2.9.4 (with BFD 990418)
/ax/axobj/axdata/rts/axel.o: In function `ElfInstallLibModules':
/ax/axobj/axdata/rts/axel.o(.text+0x38): undefined reference to `ElfInstallModule'
/ax/axobj/axdata/rts/axel.o(.text+0x48): undefined reference to `ElfInstallModule'
/ax/axobj/axdata/rts/axel.o(.text+0x58): undefined reference to `ElfInstallModule'
/ax/axobj/axdata/rts/axel.o: In function `ELElfMacroId':
/ax/axobj/axdata/rts/axel.o(.text+0xc0): undefined reference to `ElfGetModuleStartInd'

On other platforms (i.e., Intel, Alpha), we also see these errors, but
because of the --noinhibit-exec flag, the shared library is correctly
built anyway.  But on PPC, ld returns with 1 exit status, and the shared
library is not built.  Not using -Bsymbolic is not an option.

Ideas?

Thanks,
Eric
-- 
Senior Software Engineer / ericding@applix.com               <><
Applix, Inc. / 112 Turnpike Road / Westboro MA 01581-2842

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~1999-06-21 19:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-06-16 16:29 ld bug with -Bsymbolic --noinhibit-exec (2.9.1.0.990418-1c) Eric Ding
1999-06-16 17:21 ` Franz Sirl
1999-06-16 18:09   ` Eric Ding
1999-06-16 18:31     ` Franz Sirl
1999-06-16 19:38       ` Eric Ding
1999-06-16 20:40         ` Franz Sirl
1999-06-16 21:14           ` Eric Ding
1999-06-17 21:24             ` Franz Sirl
1999-06-17 22:49               ` Eric Ding
1999-06-18 19:54               ` Eric Ding
1999-06-21  9:31                 ` Franz Sirl
1999-06-21 13:05                   ` Franz Sirl
1999-06-21 19:44                     ` Eric Ding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).