readelf: apply all rela relocations in the debug_info section
Joern Rennecke
joern.rennecke@superh.com
Tue Apr 22 18:36:00 GMT 2003
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
More information about the Binutils
mailing list