https://sourceware.org/bugzilla/show_bug.cgi?id=31795
--- Comment #67 from mintsuki <mintsuki at protonmail dot com> --- I'd like to give a summary of the issue, as the whole thread is pretty long and may get confusing: ld.bfd, *regardless of target*, be it GNU/Linux or even *freestanding environments* (for example using an x86_64-elf binutils toolchain), generates perfectly fine relocatable PIE ELFs with proper PT_DYNAMIC segment and all, but with ELF type ET_EXEC, when the base load address is non-0, as this was added as some coarse workaround for some GNU/Linux specific issue. This is a bug. It should be fixed, as ld.bfd doesn't exist in a bubble where it only builds executables for GNU/Linux necessitating some questionable workaround. Additionally, both ld.lld and ld.gold do not have this bug. What's worse: this[1] issue was opened against LLD requesting that the bug be added to LLD! Please, just revert the 2013 "workaround" for GNU/Linux or make it less coarse, and fix this bug. References: 1. https://github.com/llvm/llvm-project/issues/93420 -- You are receiving this mail because: You are on the CC list for the bug.