diff options
author | Roland McGrath <mcgrathr@google.com> | 2024-08-15 19:09:14 -0700 |
---|---|---|
committer | Roland McGrath <mcgrathr@google.com> | 2024-08-15 19:09:14 -0700 |
commit | 9cc911e5593c63a94067e0a1964b91c6e92f814d (patch) | |
tree | e4a8d463127b3c014871be0a613c07ea59ec03dc | |
parent | 81e9e54636835c1fc286d87d33d51a8b3da7b35a (diff) | |
download | gdb-users/roland/riscv64-elf-shared.zip gdb-users/roland/riscv64-elf-shared.tar.gz gdb-users/roland/riscv64-elf-shared.tar.bz2 |
ld: Don't disable -shared / -pie support for riscv*-elfusers/roland/riscv64-elf-shared
Other *-elf targets support -shared and -pie modes. There is no
reason to presuppose that riscv64-elf is used for "embedded", nor
for that matter that "embedded" is mutually exclusive with
wanting -shared and -pie functionality available in the linker.
-rw-r--r-- | ld/emulparams/elf32lriscv-defs.sh | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ld/emulparams/elf32lriscv-defs.sh b/ld/emulparams/elf32lriscv-defs.sh index 0165561..5c0dac2 100644 --- a/ld/emulparams/elf32lriscv-defs.sh +++ b/ld/emulparams/elf32lriscv-defs.sh @@ -16,15 +16,8 @@ if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then esac fi -# 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 +GENERATE_SHLIB_SCRIPT=yes +GENERATE_PIE_SCRIPT=yes IREL_IN_PLT= TEXT_START_ADDR=0x10000 |