From: Christopher Faylor Date: Sun, 10 Jul 2005 01:33:13 +0000 (+0000) Subject: * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime X-Git-Tag: gdb-csl-arm-20051020-branchpoint~774 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c7fd14a3bab13c2c4ccf90f99feb3f5ff7b3727;p=platform%2Fupstream%2Fbinutils.git * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime relocation by default. (compute_dll_image_base): Avoid linking into cygwin dll address space. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 6143817..77e0245 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2005-07-09 Christopher Faylor + + * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Enable runtime + relocation by default. + (compute_dll_image_base): Avoid linking into cygwin dll address space. + 2005-07-08 Alan Modra * ldlang.c (wild_sort): Formatting. diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index bd6f191..7c0fb95 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