As per title, trying to link an executable using the clang driver, using a riscv64-elf target, results in the following warning:
clang: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
The -pie flag (and other possibly necessary flags for PIE linkage) are not passed to the linker.