From 49670f1fb94fc8fdf0fd7b7f35adf11000452ba4 Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Mon, 11 Jan 2021 18:50:39 +0700 Subject: [PATCH] Revert "RISC-V: Disable shared library support for embedded elf." This reverts commit be1dce26256aa9f6c7742e81c8c3db9eacff079d. To enable --eh-frame-hdr option back --- ld/emulparams/elf32lriscv-defs.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/ld/emulparams/elf32lriscv-defs.sh b/ld/emulparams/elf32lriscv-defs.sh index 91015d44714..40983cf1139 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 TEXT_START_ADDR=0x10000 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"