This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Reproducable SIGSEGV in ld.
- To: binutils at sourceware dot cygnus dot com
- Subject: Reproducable SIGSEGV in ld.
- From: sondheim at knxmail dot com
- Date: Tue, 26 Dec 2000 12:38:46 -0600 (CST)
Hi,
I've found a reproducable SegFault in ld... I've looked at the pointer where it
seems to have crashed, and everything looks sane. Any help would be
appreciated.
The details are as follows:
I'm compiling SDL (http://www.libsdl.org/) (both the current CVS and the official 1.1.6 version)
with a CVS gcc from around Oct 26,2000 (I prefer not to update gcc just yet unless it is, definitly the problem...) (reported version 2.97)
with the CVS version of binutil's ld (both about a month ago, and current)
and get a SegFault executing the following command:
ld -shared SDL.lo SDL_error.lo SDL_fatal.lo --whole-archive \
main/.libs/libarch.al audio/.libs/libaudio.al video/.libs/libvideo.al \
events/.libs/libevents.al joystick/.libs/libjoystick.al cdrom/.libs/libcdrom.al \
thread/.libs/libthread.al timer/.libs/libtimer.al endian/.libs/libendian.al \
file/.libs/libfile.al hermes/.libs/libhermes.al --no-whole-archive -lm \
-L/usr/lib -lesd -laudiofile -lm -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm \
-lXxf86dga -ldl -lc -soname libSDL-1.1.so.0 -o .libs/libSDL-1.1.so.0.5.2
in the SDL/src directory.
the backtrace looks like this:
Program received signal SIGSEGV, Segmentation fault.
0x0807797b in elf_link_input_bfd (finfo=0xbffff4f4, input_bfd=0x8294d40)
at elflink.h:5544
5544 isec->symbol->value = isym->st_value;
(gdb) bt
#0 0x0807797b in elf_link_input_bfd (finfo=0xbffff4f4, input_bfd=0x8294d40)
at elflink.h:5544
#1 0x080764ba in bfd_elf32_bfd_final_link (abfd=0x80d3628, info=0x80cba80)
at elflink.h:4573
#2 0x080593c5 in ldwrite () at ldwrite.c:536
#3 0x080566df in main (argc=34, argv=0xbffff604) at ./ldmain.c:372
#4 0x40036cae in __libc_start_main (main=0x8056250 <main>, argc=34,
argv=0xbffff604, init=0x80490fc <_init>, fini=0x80a5a5c <_fini>,
rtld_fini=0x4000a490 <_dl_fini>, stack_end=0xbffff5fc)
at ../sysdeps/generic/libc-start.c:92
(gdb)
as I said before, all the pointers look sane to me.
Any help would be appreciated.
Thanks,
Happy holidays,
-Loren
...................................
Great news! Get free KNXmail here!
http://www.knx1070.com