------- Additional Comments From olof at baah dot se 2009-09-19 05:40 ------- Subject: Re: ld terminated with signal 11 [segmentation fault]
No great success, the latest cvs doesn't buid, at least not on my system. if [ -r sysinfo.c ]; then \ gcc -c -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O0 sysinfo.c -Wno-error ; \ else \ gcc -c -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O0 ./sysinfo.c -Wno-error ; \ fi sysinfo.c:1: warning: return type defaults to int sysinfo.c:1: warning: function declaration isnt a prototype if [ -r syslex.c ]; then \ gcc -c -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O0 syslex.c -Wno-error ; \ else \ gcc -c -I. -I. -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O0 ./syslex.c -Wno-error ;\ fi syslex.c:1: warning: return type defaults to int syslex.c:1: warning: function declaration isnt a prototype gcc -g -O0 -o sysinfo sysinfo.o syslex.o syslex.o: In function `main': /usr/local/src/src/binutils/syslex.c:1: multiple definition of `main' sysinfo.o:/usr/local/src/src/binutils/sysinfo.c:1: first defined here Both of these files contain "main() { return 0; }" Want me to try the .19 sources with some patch? // Olof 2009/9/19 amodra at bigpond dot net dot au <sourceware-bugzi...@sourceware.org>: > > ------- Additional Comments From amodra at bigpond dot net dot au 2009-09-19 > 02:22 ------- > I've committed some patches that may stop the segfault. Please try with the > latest sources. (At the moment that means CVS, the snapshot doesn't yet have > my > patch). > > You'll get -g by default but also get -O2 which probably will make the debug > harder to interpret, so: > > CFLAGS="-g -O0" /path/to/sources/configure ... > make > ulimit -c unlimited > <run new ld to generate a core dump> > gdb > core core > backtrace > > The core file might be called core.nnnnnn > > -- > > > http://sourceware.org/bugzilla/show_bug.cgi?id=10406 > > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > -- http://sourceware.org/bugzilla/show_bug.cgi?id=10406 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils