mirror of
https://github.com/rui314/mold.git
synced 2024-08-18 01:10:32 +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
|
// - Static PIE binaries crash on startup in some RISC-V environment if
|
||||||
// we write addends to relocated places.
|
// we write addends to relocated places.
|
||||||
if constexpr (is_sparc<E> || is_riscv<E>)
|
ctx.arg.apply_dynamic_relocs = !is_sparc<E> && !is_riscv<E>;
|
||||||
ctx.arg.apply_dynamic_relocs = false;
|
|
||||||
|
|
||||||
auto read_arg = [&](std::string name) {
|
auto read_arg = [&](std::string name) {
|
||||||
for (const std::string &opt : add_dashes(name)) {
|
for (const std::string &opt : add_dashes(name)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user