This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] ld: Remove PF_X from PT_PHDR segment
- From: Alan Modra <amodra at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 13 Nov 2017 08:55:55 +1030
- Subject: Re: [PATCH] ld: Remove PF_X from PT_PHDR segment
- Authentication-results: sourceware.org; auth=none
- References: <20171112012358.GA25825@gmail.com>
On Sat, Nov 11, 2017 at 05:23:58PM -0800, H.J. Lu wrote:
> It was reasonable to mark PT_PHDR segment with PF_X for compatibility
> with UnixWare and Solaris linkers 20 years ago. But it is inappropriate
> today when the primary OS of GNU ld is Linux. This patch removes PF_X
> from PT_PHDR segment as gold does.
Yeah, I think the flags on PHDR are just decoration.
> I will check it in next Monday if there is no objections.
find ld/testsuite -type f | xargs grep PHDR
You have some existing tests to update, I think.
--
Alan Modra
Australia Development Lab, IBM