summaryrefslogtreecommitdiff
path: root/ld/pe-dll.h
diff options
context:
space:
mode:
authorHannes Domani <ssbssa@yahoo.de>2020-01-03 12:55:12 +0000
committerNick Clifton <nickc@redhat.com>2020-01-03 12:57:15 +0000
commitdc9bd8c92af67947db44b3cb428c050259b15cd0 (patch)
treef6115a6aabaced600c41c2b005e685593afa307b /ld/pe-dll.h
parentb26a3d5827edcb942b3af5b921bf317bbc0c8e83 (diff)
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/pe-dll.h')
-rw-r--r--ld/pe-dll.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/pe-dll.h b/ld/pe-dll.h
index 1ad3e43d806..2dbd0fb9867 100644
--- a/ld/pe-dll.h
+++ b/ld/pe-dll.h
@@ -38,6 +38,7 @@ extern int pe_dll_extra_pe_debug;
extern int pe_use_nul_prefixed_import_tables;
extern int pe_use_coff_long_section_names;
extern int pe_leading_underscore;
+extern int pe_dll_enable_reloc_section;
typedef enum { EXCLUDESYMS, EXCLUDELIBS, EXCLUDEFORIMPLIB } exclude_type;