------- Additional Comments From sliedes at cc dot hut dot fi 2007-03-02 21:02 ------- Created an attachment (id=1593) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1593&action=view) Another test case
The patch fixes it for this object file, but I have another that crashes (attached). It's not really a problem to me, I just tried to break things on purpose. I'm sorry if you don't want me to do that, I reported this and a ld bug like this after reading from the ld documentation something like "a reliable linker doesn't crash on any input, so if ld does, it's a bug". :) So if you don't feel this is a problem, just ignore me. (Although both test cases in this bug applied to ld too.) $ gdb --args ~/rec/binutils/binutils/nm-new nm-broken.o GNU gdb 6.6-debian Copyright (C) 2006 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 "x86_64-linux-gnu"... Using host libthread_db library "/lib/libthread_db.so.1". (gdb) r Starting program: /home/sliedes/rec/binutils/binutils/nm-new nm-broken.o BFD: nm-broken.o: no group info for section .text._ZN5Stack3popEv BFD: nm-broken.o: no group info for section .text._ZN5Stack4pushEP4Atom BFD: nm-broken.o: no group info for section .text._ZN5Queue3popEv BFD: nm-broken.o: no group info for section .rodata._ZTV7Smodels BFD: nm-broken.o: no group info for section .rodata._ZTS7Smodels BFD: nm-broken.o: no group info for section .rodata._ZTI7Smodels Program received signal SIGSEGV, Segmentation fault. 0x000000000042f918 in _bfd_elf_setup_sections (abfd=0x5dd090) at elf.c:721 721 if ((++idx)->shdr->bfd_section) (gdb) print *idx $1 = {shdr = 0xe, flags = 14} (gdb) bt #0 0x000000000042f918 in _bfd_elf_setup_sections (abfd=0x5dd090) at elf.c:721 #1 0x000000000042bfb3 in bfd_elf64_object_p (abfd=0x5dd090) at elfcode.h:816 #2 0x000000000041160f in bfd_check_format_matches (abfd=0x5dd090, format=bfd_object, matching=0x7fffafbc2d08) at format.c:240 #3 0x0000000000403f8a in display_file (filename=0x7fffafbc3555 "nm-broken.o") at nm.c:1179 #4 0x0000000000404bb6 in main (argc=2, argv=0x7fffafbc2e48) at nm.c:1622 -- http://sourceware.org/bugzilla/show_bug.cgi?id=4109 ------- 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