bus errors on ld (was Re: as,nm,ar segfaulting while building libgcc)

Phil Edwards pedwards@disaster.jaj.com
Wed Oct 18 08:42:00 GMT 2000


Well, for the record (or the list archives at least), these messages
I reported

>    collect2: ld terminated with signal 10 [Bus Error]
>    /usr/lib/libc.a(iconv.o): In function `iconv_open_private':
>    iconv.o(.text+0xcollect2: ld terminated with signal 10 [Bus Error]
>    /usr/lib/libc.a(iconv.o): In function `iconv_open_private':
>    iconv.o(.text+0xcollect2: ld terminated with signal 10 [Bus Error]
>    /usr/lib/libc.a(iconv.o): In function `iconv_open_private':
>    iconv.o(.text+0xcollect2: ld terminated with signal 10 [Bus Error]
>    /usr/lib/libc.a(iconv.o): In function `iconv_open_private':

were brought on by --gc-sections, which I had forgotten we were using
when building libstdc++-v3.  Some of the iconv stuff was being garbage
collected for some reason.  (I myself would never have figured this out;
thanks go to Benjamin.)

This flag has been disabled for now, which solves that problem and
exposes the next one.  :-)  Passing -static on solaris still needs to
find libdl... hmmm.  Anyhow.


Thanks for the tips,
Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.


More information about the Binutils mailing list