aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-10-01 09:54:58 +0000
committerNick Clifton <nickc@redhat.com>2007-10-01 09:54:58 +0000
commite2a83dd0ecc04d898cce1e17a7b2bf14d0e8fc14 (patch)
treef9a5437e0dcbb4976b774eb17e2224e60a3c2a57 /ld/emulparams
parent1576798ef8ee3053eb00b22fef8af50c41696d51 (diff)
downloadgdb-e2a83dd0ecc04d898cce1e17a7b2bf14d0e8fc14.zip
gdb-e2a83dd0ecc04d898cce1e17a7b2bf14d0e8fc14.tar.gz
gdb-e2a83dd0ecc04d898cce1e17a7b2bf14d0e8fc14.tar.bz2
PR linker/4844
* genscript.sh: Add support for generating a .xa script for use with the --auto-import option. * ld.texinfo: Document the new behaviour of the --auto-import option. * ldint.texinfo: Document new script generation. * emulparams/i386pe.sh (GENERATE_AUTO_IMPORT): Define. * emulparams/i386pe_posix.sh (GENERATE_AUTO_IMPORT): Define. * emulparams/i386pep.sh (GENERATE_AUTO_IMPORT): Define. * emultemp/pe.em (..._get_script): Support the use of the auto import script. * scripttempl/pe.sc: Put the .rdata input sections into the .data output section when creating an auto import script. * scripttempl/pep.sc: Likewise.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/i386pe.sh1
-rw-r--r--ld/emulparams/i386pe_posix.sh1
-rw-r--r--ld/emulparams/i386pep.sh1
3 files changed, 3 insertions, 0 deletions
diff --git a/ld/emulparams/i386pe.sh b/ld/emulparams/i386pe.sh
index 879379f..ecafd69 100644
--- a/ld/emulparams/i386pe.sh
+++ b/ld/emulparams/i386pe.sh
@@ -7,3 +7,4 @@ ENTRY="_mainCRTStartup"
SUBSYSTEM=PE_DEF_SUBSYSTEM
INITIAL_SYMBOL_CHAR=\"_\"
TARGET_PAGE_SIZE=0x1000
+GENERATE_AUTO_IMPORT_SCRIPT=1
diff --git a/ld/emulparams/i386pe_posix.sh b/ld/emulparams/i386pe_posix.sh
index afa00de..9348e64 100644
--- a/ld/emulparams/i386pe_posix.sh
+++ b/ld/emulparams/i386pe_posix.sh
@@ -8,3 +8,4 @@ SUBSYSTEM=7
EXECUTABLE_NAME=a.out
INITIAL_SYMBOL_CHAR=\"_\"
TARGET_PAGE_SIZE=0x1000
+GENERATE_AUTO_IMPORT_SCRIPT=1
diff --git a/ld/emulparams/i386pep.sh b/ld/emulparams/i386pep.sh
index d20f3ab..7145f35 100644
--- a/ld/emulparams/i386pep.sh
+++ b/ld/emulparams/i386pep.sh
@@ -7,3 +7,4 @@ ENTRY="_mainCRTStartup"
SUBSYSTEM=PE_DEF_SUBSYSTEM
INITIAL_SYMBOL_CHAR=\"_\"
TARGET_PAGE_SIZE=0x1000
+GENERATE_AUTO_IMPORT_SCRIPT=1