[PATCH] Fix ld bloat introduced between binutils-2.38 and 2.39

Alan Modra amodra@gmail.com
Tue Jan 3 01:35:27 GMT 2023


On Mon, Jan 02, 2023 at 05:08:57PM +0100, Hans-Peter Nilsson via Binutils wrote:
> That may sound like an argument for setting the bfd_arch_arm
> ELF_MAXPAGESIZE to 4 KiB, but then the obscure corner-case
> wouldn't be properly handled.

Agreed.  It's what x86 did when facing the same thing.  If anybody
cares about the obscure corner-case you identify then they can just
use -z max-page-size.  Or edit elf32-arm.c.

> Instead, I suggest simply making ELF_MAXPAGESIZE generally
> overridable by means of a --with option at linker
> configuration time.

I dislike configure time options that affect linker behaviour, but I
realise I'm flogging a dead horse since we already have a lot of them.
However, this particular option is worse than most since it affects
all ELF targets.  That can't be correct or useful with
--enable-targets=all.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list