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: Default the maximum page size to the common page size for -z separate-code


On Thu, Jan 11, 2018 at 09:13:19PM -0800, H.J. Lu wrote:
> When -z separate-code is used, code segment is aligned and padded to
> the maximum page size on disk.  This patch defaults the maximum page
> size to the common page size for -z separate-code to reduce file size.

I think this is a bad idea.  Options should have as few magical
side-effects as possible.  If you want -z separate-code to align to
common-page-size, then do that in the script (and document in
ld.texinfo that code separation is only effective for system page size
up to common-page-size, like -z relro).

-- 
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]