Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3E075A0F.5C476C7A@phekda.freeserve.co.uk> Date: Mon, 23 Dec 2002 18:46:39 +0000 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: DJGPP workers Subject: ld crash when building emu387.dxe Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. I seem to be experiencing crashes, when trying to build emu387.dxe. The traces below are with gcc, binutils, fileutils, sh-utils and textutils built against CVS from a few days ago with my multiple-consecutive-slash patch. Apart from this crash, everything seems to be working OK. Please note that I also get this crash in another tree, which is built with stock versions from Simtel.NET. Both trees have been built with -g with gcc 3.2.1 - DWARF-2 debugging information. ./../../hostbin/dxegen.exe ./../../bin/emu387.dxe __emu_entry src/emu387.o id_em u.o src/emudummy.o -L../../lib c:/djgpp.204/lib/gcc-lib/djgpp/3.21/libgcc.a -lc c:/djgpp.204/lib/gcc-lib/djgpp/3.21/libgcc.a ld -X -S -r -o dxe__tmp.o -L./../../lib src/emu387.o id_emu.o src/emudummy.o -L. ./../lib c:/djgpp.204/lib/gcc-lib/djgpp/3.21/libgcc.a -lc c:/djgpp.204/lib/gcc-l ib/djgpp/3.21/libgcc.a -T dxe.ld Exiting due to signal SIGSEGV Page fault at eip=000438d0, error=0006 eax=00b10000 ebx=ff5162b4 ecx=001262d0 edx=00147498 esi=001474d8 edi=000fdcb0 ebp=000fda38 esp=000fda20 program=C:\DJGPP.204\BIN\LD.EXE cs: sel=01df base=84e90000 limit=ff72ffff ds: sel=01e7 base=84e90000 limit=ff72ffff es: sel=01e7 base=84e90000 limit=ff72ffff fs: sel=01bf base=00026360 limit=0000ffff gs: sel=01f7 base=00000000 limit=0010ffff ss: sel=01e7 base=84e90000 limit=ff72ffff App stack: [000fddd8..0007ddd8] Exceptn stack: [0007dc68..0007bd28] Call frame traceback EIPs: 0x000438d0 mark_relocs+128, file c:/djgpp.204/gnu/binutl-2.13/build.djg/bfd/.. 0x00043b0f _bfd_coff_link_input_bfd+431, file c:/djgpp.204/gnu/binutl-2.13/bui 0x0004338e _bfd_coff_final_link+3054, file c:/djgpp.204/gnu/binutl-2.13/build. 0x0001cb90 ldwrite+80, file c:/djgpp.204/gnu/binutl-2.13/build.djg/ld/../../ld 0x0001a43d .debug_line+193 0x000607e7 __crt1_startup+199, file c:/djgpp.204/src/libc/crt0/crt1.c, line 23 make.exe: *** [../../bin/emu387.dxe] Error -1 bash-2.04$ !bfd bfdsymify c:/djgpp.204/bin/ld.exe bash-2.04$ cat link.gdb r -X -S -r -o dxe__tmp.o -L./../../lib src/emu387.o id_emu.o src/emudummy.o -L.. /../lib c:/djgpp.204/lib/gcc-lib/djgpp/3.21/libgcc.a -lc c:/djgpp.204/lib/gcc-li b/djgpp/3.21/libgcc.a -T dxe.ld bash-2.04$ !gdb gdb c:/djgpp.204/bin/ld.exe --command=link.gdb GNU gdb 5.3 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i686-pc-msdosdjgpp --target=djgpp"... Program received signal SIGSEGV, Segmentation fault. mark_relocs (finfo=0xfdcb0, input_bfd=0x113870) at ../../bfd/cofflink.c:1349 1349 finfo->sym_indices[ irel->r_symndx ] = -1; (gdb) bt #0 mark_relocs (finfo=0xfdcb0, input_bfd=0x113870) at ../../bfd/cofflink.c:1349 #1 0x00043b0f in _bfd_coff_link_input_bfd (finfo=0xfdcb0, input_bfd=0x113870) at ../../bfd/cofflink.c:1431 #2 0x0004338e in _bfd_coff_final_link (abfd=0x107838, info=0x7bb58) at ../../bfd/cofflink.c:923 #3 0x0001cb90 in ldwrite () at ../../ld/ldwrite.c:540 #4 0x0001a43d in main (argc=1, argv=0x1) at ../../ld/ldmain.c:415 #5 0x000607e7 in __crt1_startup () at crt1.c:234 (gdb) p a->name $1 = 0x114150 ".debug_info" Any ideas? Bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]