[PATCH v2] elf/x86-64: Subtract __ImageBase for R_AMD64_IMAGEBASE
Alan Modra
amodra@gmail.com
Thu Feb 25 02:09:27 GMT 2021
On Tue, Feb 23, 2021 at 09:50:20AM -0800, H.J. Lu via Binutils wrote:
> * reloc.c (bfd_perform_relocation): Add a link_info argument.
> Subtract __ImageBase for R_AMD64_IMAGEBASE.
H.J., did you consider moving all of this, including the code you
added in git commit 36068e2fa54, to the relevant howto special
functions? None of it really belongs in bfd_perform_relocation.
You might even be able to do without a link_info parameter, instead
passing the image base value in output_elf_obj_tdata.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list