[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/21532] AArch64: Symbol address inconsistency across compilation

From: jiwang at gcc dot gnu.org
Subject: [Bug ld/21532] AArch64: Symbol address inconsistency across compilation units
Date: Wed, 07 Jun 2017 15:21:19 +0000


--- Comment #5 from Jiong Wang <jiwang at gcc dot gnu.org> ---
(In reply to Nick Clifton from comment #3)
> Hi Jiong,
>   Thanks for taking a look at this.
> >    Looks like AArch64 could avoid emiting COPY relocation if it's a 
> > relocation
> > against writable section. We could adopt similar code from
> > elf_x86_64_adjust_dynamic_symbol or ppc64_elf_adjust_dynamic_symbol.
> Ah - maybe not.  The original testcase (in the BZ) shows the bug happening
> when
> constant data is used rather than writeable data.  You can also extend the
> second
> testcase I posted to use constant data and the same problem happens.

Hi Nick,

It looks like those cases are relro sections, that the elf attribute is still
writable, so COPY relocation still can be elimiated

I have posted the patch at
https://sourceware.org/ml/binutils/2017-06/msg00070.html, both testcases on
this PR passed.

You are receiving this mail because:
You are on the CC list for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]