RISC-V: Disable shared library support for embedded elf.
authorJim Wilson <jimw@sifive.com>
Fri, 5 Jan 2018 22:29:49 +0000 (14:29 -0800)
committerJim Wilson <jimw@sifive.com>
Fri, 5 Jan 2018 22:29:49 +0000 (14:29 -0800)
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.

ld/ChangeLog
ld/emulparams/elf32lriscv-defs.sh

index 2b8e7c575c22a7f15fb91faa33efe069db5bd745..97032775e9dada1fe777aaff980dea569680bdf6 100644 (file)
@@ -1,3 +1,9 @@
+2018-01-05  Jim Wilson  <jimw@sifive.com>
+
+       * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
+       case on $target, and don't set for riscv*-elf targets.
+       (GENERATE_PIE_SCRIPT): Likewise.
+
 2018-01-03  Alan Modra  <amodra@gmail.com>
 
        Update year range in copyright notice of all files.
index 29ed6d8542a13bd6953c2513c10df5228416c5c7..f373eced89b060acc018ad6f6762026b0e100cf4 100644 (file)
@@ -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)"