This is the mail archive of the binutils@sourceware.org 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: Why are there 2 continous R_MIPS_HI16 reloc entries in the ELF excutable?


Pan ruochen wrote:
> Hi All,
> 
> $mips-elf-readelf -r foo.out
> Offset     Info    Type            Sym.Value  Sym. Name
> 00000328  00009005 R_MIPS_HI16       0000004c   write_buf
> 0000033c  00009005 R_MIPS_HI16       0000004c   write_buf
> 
> But the spec says:
> |--------------------------------------------------------------------------|
> |  Each relocation type of R_MIPS_HI16 must have an associated             |
> |  R_MIPS_LO16 entry immediately following it in the list of relocations.  |
> |--------------------------------------------------------------------------|
> 
> What's wrong about it?

The GNU toolchain allows relaxed rules of R_MIPS_HI16/R_MIPS_LO16
as an extension. (This allows some optimizations which wouldn't be
possible otherwise.)


Thiemo


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