ld: Don't disable -shared / -pie support for riscv*-elf 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.