This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] powerpc: Update elf_machine_load_address for static PIE
- From: Alan Modra <amodra at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Sat, 30 Sep 2017 08:47:35 +0930
- Subject: Re: [PATCH] powerpc: Update elf_machine_load_address for static PIE
- Authentication-results: sourceware.org; auth=none
- References: <20170929213400.GL2482@gmail.com>
On Fri, Sep 29, 2017 at 02:34:00PM -0700, H.J. Lu wrote:
> powerpc uses _DYNAMIC to compute load address, which works with static
> PIE. We just need to return 0 if _DYNAMIC is undefined for static
> executable.
powerpc does, but powerpc64 does not. So why is the test necessary on
powerpc64?
>
> OK for master?
>
> * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_load_address):
> Return 0 if _DYNAMIC is undefined for static executable.
> * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_load_address):
> Likewise.
--
Alan Modra
Australia Development Lab, IBM