mirror of
https://github.com/rui314/mold.git
synced 2024-10-05 17:17:40 +03:00
Simplify
This commit is contained in:
parent
cf1c02d097
commit
a38be94064
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user