[PATCH] ld: Add scan_relocs to ELF linker
Alan Modra
amodra@gmail.com
Thu Jan 6 22:59:15 GMT 2022
On Thu, Jan 06, 2022 at 07:05:48AM -0800, H.J. Lu wrote:
> On Wed, Jan 05, 2022 at 10:13:29AM +1030, Alan Modra wrote:
> > On Wed, Dec 29, 2021 at 02:14:31PM -0800, H.J. Lu via Binutils wrote:
> > > bfd/
> > >
> > > * elf-bfd.h (elf_backend_data): Add make_reloc_section.
> >
> > No, none of the elf-bfd.h, elflink.c, elfxx-target.h, bfdlink.h,
> > ldlang.c or any other general linker files need changing to support an
> > x86 separation of check_relocs into two pieces.
Are you hoping that someone else will approve the patch, ignoring what
I said above?
> Here is a patch to add scan_relocs to ELF linker. It is called in
> ldelf_before_allocation after rel_from_abs has been set on __ehdr_start.
Did you consider using elf_backend_always_size_sections? We have lots
of hooks already, no need to create more if one of the existing ones
works.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list