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: readelf: apply all rela relocations in the debug_info section


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


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