[PATCH 0/3] BFD, MIPS: Fix the handling of branch relocations against absolute symbols

Maciej W. Rozycki macro@imgtec.com
Tue Jul 12 00:29:00 GMT 2016


Hi,

 This small patch set fixes issues with limited-range PC-relative MIPS 
branch relocations against absolute local symbols, especially on REL 
targets.  Being PC-relative they cannot be resolved in GAS and have to be 
deferred to the static link time even though the symbol is constant and 
the limited range and LSB truncation means we need to be careful and avoid 
an overflow or losing bits.  As three independent issues need addressing 
here for a complete fix, I have split the change into self-contained 
parts.

 As 1/3 pokes at bfd/reloc.c and therefore requires a general maintainer's 
approval I'm sending these changes as an RFA, although I consider input 
for 2/3 and 3/3 optional.

  Maciej



More information about the Binutils mailing list