diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2014-12-11 05:30:33 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2014-12-11 05:30:33 -0800 |
commit | 795c04ea67f41281501cf54a145bc995b1c395ad (patch) | |
tree | 99183c4c453525561ded33674a06ae0f19c3156e /binutils | |
parent | fb428cb3bea10af947e67521dfc24cbac327bd91 (diff) | |
download | riscv-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.sh | 3 |
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)" |