This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: aarch64 prelink issue


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]