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: Roland McGrath <mcgrathr at google dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Cc: Alan Modra <amodra at gmail dot com>
- Date: Fri, 15 Aug 2014 16:31:53 -0700
- 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>
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?
.syntax unified
.arm
.globl foo
.type foo,%function
foo: movw r0, #:lower16:.L2 - .L1 - 8
movt r0, #:upper16:.L2 - .L1 - 8
.L1: add r0, pc
bx lr
.data
.L2: .word 22
Thanks,
Roland