aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2014-12-11 05:30:33 -0800
committerAndrew Waterman <waterman@cs.berkeley.edu>2014-12-11 05:30:33 -0800
commit795c04ea67f41281501cf54a145bc995b1c395ad (patch)
tree99183c4c453525561ded33674a06ae0f19c3156e /binutils
parentfb428cb3bea10af947e67521dfc24cbac327bd91 (diff)
downloadriscv-gnu-toolchain-795c04ea67f41281501cf54a145bc995b1c395ad.zip
riscv-gnu-toolchain-795c04ea67f41281501cf54a145bc995b1c395ad.tar.gz
riscv-gnu-toolchain-795c04ea67f41281501cf54a145bc995b1c395ad.tar.bz2
binutils: set text start addresses more sensibly
Position-dependent executables are now linked at base address 0x800000. Shared libraries and PIEs are now linked at base address 0.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ld/emulparams/elf32lriscv-defs.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/binutils/ld/emulparams/elf32lriscv-defs.sh b/binutils/ld/emulparams/elf32lriscv-defs.sh
index cc2937b..dd7abde 100644
--- a/binutils/ld/emulparams/elf32lriscv-defs.sh
+++ b/binutils/ld/emulparams/elf32lriscv-defs.sh
@@ -24,8 +24,7 @@ fi
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
-TEXT_START_ADDR=0x10000000
-SHLIB_TEXT_START_ADDR=0x1000000
+TEXT_START_ADDR=0x800000
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"