This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH 0/6] PR binutils/22875: More unsupported relocation handling target backend fixes
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "Maciej W. Rozycki" <macro at mips dot com>
- Cc: Nick Clifton <nickc at redhat dot com>, Alan Modra <amodra at gmail dot com>, Binutils <binutils at sourceware dot org>
- Date: Thu, 29 Mar 2018 14:06:49 -0700
- Subject: Re: [PATCH 0/6] PR binutils/22875: More unsupported relocation handling target backend fixes
- References: <alpine.DEB.2.00.1803282251560.2163@tp.orcam.me.uk>
On Thu, Mar 29, 2018 at 10:31 AM, Maciej W. Rozycki <macro@mips.com> wrote:
> Hi,
>
> In the course of adjusting the strip-13 test case for correct MIPS target
> coverage I have discovered further problems with unsupported relocation
> handling across a few target backends, including the MIPS backend itself.
> Here's a small patch series to address them. No regressions across the
> usual targets. See individual descriptions for details.
>
> A pattern repeats across a few targets, where out-of-bounds accesses are
> made to the respective howto tables for unsupported relocations, making
> behaviour unpredictable and possibly leading to a crash. I have only
> adjusted those which actually triggered in my testing with strip-13 test
> case adjustments to come. There may be more.
>
> Also the x86-64 backend seems to mishandle unsupported relocations that
> have the recently added (with commit 78984959cb38 ("x86-64: Add
> R_X86_64_converted_reloc_bit")) R_X86_64_converted_reloc_bit bit set. I
> found a possible fix too complicated for me to afford the time required to
> sort it now, so I'm leaving it up to H.J. to address. More details will
> follow with strip-13 test case updates. NB `readelf -r' does not handle
> R_X86_64_converted_reloc_bit either and reports an unrecognized relocation
> instead.
>
R_X86_64_converted_reloc_bit is a bit internal to linker. What problems did
you see? How can I reproduce it?
--
H.J.