This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: [PATCH] ld: Remove PF_X from PT_PHDR segment


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


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