[PATCH] Implement --enable-reloc-section
Nick Clifton
nickc@redhat.com
Fri Jan 3 12:58:00 GMT 2020
Hi Hannes,
> The base relocation table is necessary if the image is loaded at
> a different image base than specified in the PE header.
>
> For that reason this option is also enabled if --dynamicbase is active.
> And --high-entryopy-va enables --dynamicbase.
>
> ld/ChangeLog:
>
> 2019-12-29 Hannes Domani <ssbssa@yahoo.de>
>
> * emultempl/pe.em: Add new option --enable-reloc-section.
> * emultempl/pep.em: Likewise.
> * ld.texi: Document --enable-reloc-section.
> * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
> (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
> * pe-dll.h: Add extern declaration of option flag.
> * pep-dll.c (pe_dll_enable_reloc_section):
> Add alias define for pep_dll_enable_reloc_section.
> * pep-dll.h: Add extern declaration of option flag.
Approved and applied. Thanks very much for contributing this patch.
Cheers
Nick
More information about the Binutils
mailing list