[Bug binutils/9735] wrong source file shown by objdump -S

2009-01-13 Thread amodra at bigpond dot net dot au
--- Additional Comments From amodra at bigpond dot net dot au 2009-01-13 23:48 --- I should have guessed this was stabs.. Rather than papering over the problem in objdump, I fixed it at its source. At least one other app similarly keeps previous file name pointers returned from bfd_fi

[Bug binutils/9735] wrong source file shown by objdump -S

2009-01-13 Thread cvs-commit at gcc dot gnu dot org
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2009-01-13 23:45 --- Subject: Bug 9735 CVSROOT:/cvs/src Module name:src Changes by: amo...@sourceware.org 2009-01-13 23:44:45 Modified files: bfd: ChangeLog syms.c Log message:

[Bug ld/9727] ld crashes in bfd/elf.c bfd_elf_set_group_contents()

2009-01-13 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2009-01-13 22:39 --- We should check section groups to properly support ld -r --gc-sections: 1. If all sections in a section group are removed, we should also remove the group section. 2. If any sections in a section group is k

[Bug ld/9727] ld crashes in bfd/elf.c bfd_elf_set_group_contents()

2009-01-13 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2009-01-13 22:06 --- I saw it on Linux/x86: [...@gnu-6 9727]$ cat x.s .section.text.foo,"axG",@progbits,foo,comdat .globl foo .type foo,@function foo: .byte 0 .section.t

[Bug binutils/9735] wrong source file shown by objdump -S

2009-01-13 Thread dick at streefland dot net
--- Additional Comments From dick at streefland dot net 2009-01-13 12:37 --- Created an attachment (id=3661) --> (http://sourceware.org/bugzilla/attachment.cgi?id=3661&action=view) ELF file of the example Here is the ELF file. When I was debugging the problem, print_files only contain

[Bug binutils/9735] wrong source file shown by objdump -S

2009-01-13 Thread amodra at bigpond dot net dot au
--- Additional Comments From amodra at bigpond dot net dot au 2009-01-13 12:25 --- I still can't replicate the problem. The testcase isn't a great help since I don't have avr-gcc. Please attach the compiled program. Hmm, you do realise that entries are added to the beginning of the pr

[Bug binutils/9735] wrong source file shown by objdump -S

2009-01-13 Thread dick at streefland dot net
--- Additional Comments From dick at streefland dot net 2009-01-13 11:16 --- Created an attachment (id=3660) --> (http://sourceware.org/bugzilla/attachment.cgi?id=3660&action=view) test case to reproduce the problem Here is a gzipped tar file with a test case to reproduce the problem.

[Bug binutils/9735] wrong source file shown by objdump -S

2009-01-13 Thread dick at streefland dot net
--- Additional Comments From dick at streefland dot net 2009-01-13 09:29 --- Sorry, I thought the bug would show up for every target. It was in binutils-avr, for the Atmel AVR. In the debugger, I could see that the filename and modname strings for the first entry in the print_files list