From: Stefan Kristiansson Date: Wed, 16 Jul 2014 21:25:20 +0000 (+0300) Subject: or1k: increase linux TEXT_START_ADDR to 0x2000 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d14e1918d16b5f700d7cde8bf40f1e0309bbfc6;p=binutils-gdb.git or1k: increase linux TEXT_START_ADDR to 0x2000 Override the default value of 0x0000 defined in TEXT_START_ADDR to avoid linux executables to be mapped at zero page. ld/ * emulparams/elf32or1k_linux.sh (TEXT_START_ADDR): Increase from 0x0 to first page boundary at 0x2000. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index a39e29ec788..9354e640eba 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2014-07-17 Stefan Kristiansson + + * emulparams/elf32or1k_linux.sh (TEXT_START_ADDR): Increase from + 0x0 to first page boundary at 0x2000. + 2014-07-10 Max Filippov * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): diff --git a/ld/emulparams/elf32or1k_linux.sh b/ld/emulparams/elf32or1k_linux.sh index a5bf12914d8..80ef51c58e7 100644 --- a/ld/emulparams/elf32or1k_linux.sh +++ b/ld/emulparams/elf32or1k_linux.sh @@ -3,3 +3,4 @@ unset EMBEDDED GENERATE_SHLIB_SCRIPT=yes GENERATE_PIE_SCRIPT=yes GENERATE_COMBRELOC_SCRIPT=yes +TEXT_START_ADDR=0x00002000