This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: aarch64 prelink issue
- From: Mark Salter <msalter at redhat dot com>
- To: Richard Henderson <rth at twiddle dot net>
- Cc: marcus dot shawcroft at linaro dot org, libc-ports <libc-ports at sourceware dot org>
- Date: Wed, 26 Jun 2013 08:42:59 -0400
- Subject: Re: aarch64 prelink issue
- References: <1372092109 dot 3739 dot 13 dot camel at t520 dot redhat dot com> <51C87F49 dot 3070008 at twiddle dot net>
On Mon, 2013-06-24 at 10:18 -0700, Richard Henderson wrote:
> Try the x86_64 solution:
>
> /* This produces an IP-relative reloc which is resolved at link time. */
> extern const ElfW(Addr) _GLOBAL_OFFSET_TABLE_[] attribute_hidden;
> return _GLOBAL_OFFSET_TABLE_[0];
>
> with the extra hidden attribute, this should result in an ADR(P)
> reference to the _G_O_T_.
>
This isn't working for aarch64. It doesn't use a PC-relative reference
and it tries reading from the GOT at the link time absolute address.