mipsel: build: Fix -z execstack link error
parent
cb4cfb916c
commit
afc1ae1481
|
|
@ -1105,10 +1105,18 @@ config("linker") {
|
|||
}
|
||||
|
||||
if (is_linux || is_chromeos || is_android || is_fuchsia) {
|
||||
ldflags += [
|
||||
"-Wl,-z,noexecstack",
|
||||
"-Wl,-z,relro",
|
||||
]
|
||||
if (current_cpu != "mipsel" && current_cpu != "mips64el") {
|
||||
ldflags += [
|
||||
"-Wl,-z,noexecstack",
|
||||
"-Wl,-z,relro",
|
||||
]
|
||||
} else {
|
||||
ldflags += [
|
||||
# https://github.com/llvm/llvm-project/pull/124068
|
||||
"-Wl,-z,execstack",
|
||||
"-Wl,-z,relro",
|
||||
]
|
||||
}
|
||||
|
||||
if (!is_component_build) {
|
||||
ldflags += [ "-Wl,-z,now" ]
|
||||
|
|
|
|||
Loading…
Reference in New Issue