This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: readelf: apply all rela relocations in the debug_info section
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>, binutils at sources dot redhat dot com, Alan Modra <amodra at bigpond dot net dot au>
- Date: Tue, 22 Apr 2003 19:35:03 +0100
- Subject: Re: readelf: apply all rela relocations in the debug_info section
- Organization: SuperH UK Ltd.
- References: <3EA58964.E0269B6F@superh.com>
Joern Rennecke wrote:
>
> > * readelf.c (display_debug_info): Apply RELA relocations on the
> > entire section.
> > (byte_put_little_endian, byte_put_big_endian): New functions.
> > (byte_put): New variable.
> > (get_file_header): Initialize it.
>
> This breaks the readelf -wi test for sh-elf.
P.S.: I should probably say: It breaks this test some more. The
comparison template is already wrong, but with your patch, it doesn't
even get that far, readelf spews two warnings:
readelf: Warning: Skipping unexpected symbol type 1
readelf: Warning: Skipping unexpected symbol type 1
gdb says that these are relocations for the symbols _global and _common.
--
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658