This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Move elf32.em and elf-generic.em functions
- From: Nick Alcock <nick dot alcock at oracle dot com>
- To: Alan Modra <amodra at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 11 Sep 2019 09:15:34 +0100
- Subject: Re: Move elf32.em and elf-generic.em functions
- References: <20190911042455.GD3307@bubble.grove.modra.org>
On 11 Sep 2019, Alan Modra stated:
> Many ELF linker targets support multiple "emulations" and thus have
> multiple copies of elf32.em being compiled and linked into ld. This
> patch moves much of elf32.em and elf-generic.em into files which will
> be compiled just once, resulting in a 20% decrease in ld size for
> --enable-targets=all.
As someone who just had to grok this for the first time, it was an
incredibly confusing tangle. This looks much better, no worse for ELF
than for anything else.