diff options
author | Christopher Faylor <me+cygwin@cgf.cx> | 2005-07-10 01:33:13 +0000 |
---|---|---|
committer | Christopher Faylor <me+cygwin@cgf.cx> | 2005-07-10 01:33:13 +0000 |
commit | 3d0bd8871b6562d57cff2aa38b5c5a2858e6d8a0 (patch) | |
tree | 59a9c478f2c5d43370505509fbc8288e2cf18e36 /ld/emultempl | |
parent | 8da5cd8f1e60de763e816e4b19bd9abd3b6077ed (diff) | |
download | binutils-redhat-3d0bd8871b6562d57cff2aa38b5c5a2858e6d8a0.tar.gz |
* emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime
relocation by default.
(compute_dll_image_base): Avoid linking into cygwin dll address space.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/pe.em | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index bd6f191b81..7c0fb95bc3 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -135,7 +135,7 @@ gld_${EMULATION_NAME}_before_parse (void) config.dynamic_link = TRUE; config.has_shared = 1; link_info.pei386_auto_import = -1; - link_info.pei386_runtime_pseudo_reloc = FALSE; + link_info.pei386_runtime_pseudo_reloc = -1; #if (PE_DEF_SUBSYSTEM == 9) || (PE_DEF_SUBSYSTEM == 2) #if defined TARGET_IS_mipspe || defined TARGET_IS_armpe @@ -667,7 +667,7 @@ static unsigned long compute_dll_image_base (const char *ofile) { unsigned long hash = strhash (ofile); - return 0x60000000 | ((hash << 16) & 0x0FFC0000); + return 0x61300000 + ((hash << 16) & 0x0FFC0000); } #endif |