This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: binutils is now broken


Should have spotted this earlier...

Michal, this bit:
        * dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
        _bfd_dwarf2_find_nearest_line): Use
        bfd_simple_get_relocated_section_contents() instead of
        bfd_get_section_contents().

is not OK when linking, when the sections have assigned output offsets
and output sections.  They're meant for non-linking use only, but
unfortunately dwarf2.c uses them for both.

On Thu, Nov 07, 2002 at 10:26:33AM -0800, H. J. Lu wrote:
> I got
> 
> 
> ./ld-new  -L/export/linux/src/binutils/binutils/ld/testsuite/ld-discard  -T
> discard.ld -o tmpdir/dump tmpdir/dump0.o tmpdir/dump1.o
> failed with: <tmpdir/dump0.o(.text+0x0)./ld-new: BFD 2.13.90.0.13 20021107
> internal error, aborting at /export/linux/src/binutils/binutils/bfd/reloc.c
> line 3893 in bfd_generic_get_relocated_section_contents
> 
> ./ld-new: Please report this bug.
> 
> 
> ./build-ia64-linux/ld/ld.log:FAIL: ld-discard/extern
> ./build-ia64-linux/ld/ld.log:FAIL: ld-discard/start
> ./build-ia64-linux/ld/ld.log:FAIL: ld-discard/static
> 
> 
> ./ld-new  -L/export/linux/src/binutils/binutils/ld/testsuite/ld-discard  -T
> discard.ld -o tmpdir/dump tmpdir/dump0.o
> failed with: <tmpdir/dump0.o(.text+0x0)./ld-new: Dwarf Error: found dwarf
> version '24623', this reader only handles version 2 information.>, expected:
> <undefined reference to `(data|local symbols in discarded section
> \.data\.exit)'> 
> 
> ./build-s390-linux/ld/ld.log:FAIL: ld-discard/extern
> ./build-s390-linux/ld/ld.log:FAIL: ld-discard/static
> 
> ./ld-new  -L/export/linux/src/binutils/binutils/ld/testsuite/ld-discard  -T
> discard.ld -o tmpdir/dump tmpdir/dump0.o
> failed with: <tmpdir/dump0.o(.text+0x0)./ld-new: Dwarf Error: found dwarf
> version '27849', this reader only handles version 2 information.>, expected:
> <undefined reference to `(data|local symbols in discarded section
> \.data\.exit)'>
> 
> ./build-ppc64-linux/ld/ld.log:FAIL: ld-discard/extern
> ./build-ppc64-linux/ld/ld.log:FAIL: ld-discard/static
> 
> 
> H.J.
> 

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]