This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Fix PR ld/17277: bogus dynamic relocs and TEXTREL for ARM PC-relative relocs
- From: Alan Modra <amodra at gmail dot com>
- To: Roland McGrath <mcgrathr at google dot com>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Mon, 18 Aug 2014 09:00:35 +0930
- Subject: Re: [PATCH] Fix PR ld/17277: bogus dynamic relocs and TEXTREL for ARM PC-relative relocs
- Authentication-results: sourceware.org; auth=none
- References: <CAB=4xhqoJPa-v25zJok+Ajo9BaeoUKNFt0DhBaB3PzyDn1gU_g at mail dot gmail dot com> <CAB=4xhp+zi+MNkkUTjNB6K+RmtJBPUC8yMq-V__GLpT3aekSBQ at mail dot gmail dot com>
On Fri, Aug 15, 2014 at 04:31:53PM -0700, Roland McGrath wrote:
> Here's another case with the same failure mode, that my change does not
> fix. The only difference seems to be a local symbol in another section vs
> a global, hidden symbol in that other section. Any pointers on where to go
> next?
It seems to me the problem here is that may_become_dynamic_p should
not be set for pc_relative relocations against a local symbol.
--
Alan Modra
Australia Development Lab, IBM