diff options
author | Hannes Domani <ssbssa@yahoo.de> | 2020-01-03 12:55:12 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-01-03 12:57:15 +0000 |
commit | dc9bd8c92af67947db44b3cb428c050259b15cd0 (patch) | |
tree | f6115a6aabaced600c41c2b005e685593afa307b /ld/pep-dll.c | |
parent | b26a3d5827edcb942b3af5b921bf317bbc0c8e83 (diff) | |
download | gdb-dc9bd8c92af67947db44b3cb428c050259b15cd0.zip gdb-dc9bd8c92af67947db44b3cb428c050259b15cd0.tar.gz gdb-dc9bd8c92af67947db44b3cb428c050259b15cd0.tar.bz2 |
For PE format files, the base relocation table is necessary if the image is loaded at a different image base than specified in the PE header. This patch provides a new option --enable-reloc-section to force the generation of this section.
* 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.
Diffstat (limited to 'ld/pep-dll.c')
-rw-r--r-- | ld/pep-dll.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/pep-dll.c b/ld/pep-dll.c index 172b970..16140d3 100644 --- a/ld/pep-dll.c +++ b/ld/pep-dll.c @@ -39,6 +39,7 @@ #define pe_use_coff_long_section_names \ pep_use_coff_long_section_names #define pe_leading_underscore pep_leading_underscore +#define pe_dll_enable_reloc_section pep_dll_enable_reloc_section /* Unique global name for functions to avoid double defined symbols. */ #define pe_find_data_imports pep_find_data_imports |