aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2018-01-05 14:29:49 -0800
committerJim Wilson <jimw@sifive.com>2018-01-05 14:29:49 -0800
commitbe1dce26256aa9f6c7742e81c8c3db9eacff079d (patch)
treed207aed76adbda282a1592d809fc85a4507c3d88 /ld/emulparams
parente379cee61f3890e535e995828e8846b020ef2a32 (diff)
downloadgdb-be1dce26256aa9f6c7742e81c8c3db9eacff079d.zip
gdb-be1dce26256aa9f6c7742e81c8c3db9eacff079d.tar.gz
gdb-be1dce26256aa9f6c7742e81c8c3db9eacff079d.tar.bz2
RISC-V: Disable shared library support for embedded elf.
ld/ * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside case on $target, and don't set for riscv*-elf targets. (GENERATE_PIE_SCRIPT): Likewise.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/elf32lriscv-defs.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/ld/emulparams/elf32lriscv-defs.sh b/ld/emulparams/elf32lriscv-defs.sh
index 29ed6d8..f373ece 100644
--- a/ld/emulparams/elf32lriscv-defs.sh
+++ b/ld/emulparams/elf32lriscv-defs.sh
@@ -16,8 +16,15 @@ if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
esac
fi
-GENERATE_SHLIB_SCRIPT=yes
-GENERATE_PIE_SCRIPT=yes
+# Enable shared library support for everything except an embedded elf target.
+case "$target" in
+ riscv*-elf)
+ ;;
+ *)
+ GENERATE_SHLIB_SCRIPT=yes
+ GENERATE_PIE_SCRIPT=yes
+ ;;
+esac
TEXT_START_ADDR=0x10000
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"