1
1
mirror of https://github.com/rui314/mold.git synced 2024-07-07 09:26:23 +03:00
This commit is contained in:
Rui Ueyama 2024-06-27 19:50:23 +09:00
parent cf1c02d097
commit a38be94064

View File

@ -554,8 +554,7 @@ std::vector<std::string> parse_nonpositional_args(Context<E> &ctx) {
//
// - Static PIE binaries crash on startup in some RISC-V environment if
// we write addends to relocated places.
if constexpr (is_sparc<E> || is_riscv<E>)
ctx.arg.apply_dynamic_relocs = false;
ctx.arg.apply_dynamic_relocs = !is_sparc<E> && !is_riscv<E>;
auto read_arg = [&](std::string name) {
for (const std::string &opt : add_dashes(name)) {