This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 0/3] BFD, MIPS: Fix the handling of branch relocations against absolute symbols
- From: "Maciej W. Rozycki" <macro at imgtec dot com>
- To: <binutils at sourceware dot org>
- Date: Tue, 12 Jul 2016 01:29:19 +0100
- Subject: [PATCH 0/3] BFD, MIPS: Fix the handling of branch relocations against absolute symbols
- Authentication-results: sourceware.org; auth=none
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