mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1841212 - Build elfhack injected code without eh_frame. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D182542
This commit is contained in:
parent
8681e86caf
commit
e6e7f961ea
@ -34,7 +34,14 @@ for v in ("OS_CPPFLAGS", "OS_CFLAGS", "DEBUG", "CLANG_PLUGIN", "OPTIMIZE", "FRAM
|
||||
idx += 1
|
||||
COMPILE_FLAGS[v] = flags
|
||||
|
||||
COMPILE_FLAGS["OS_CFLAGS"] += ["-O2", "-fno-stack-protector", "-fno-lto"]
|
||||
COMPILE_FLAGS["OS_CFLAGS"] += [
|
||||
"-O2",
|
||||
"-fno-stack-protector",
|
||||
"-fno-lto",
|
||||
# The injected code runs early enough that it supporting unwinding is useless.
|
||||
# Moreover, elfhack doesn't inject the eh_frame section anyways.
|
||||
"-fno-asynchronous-unwind-tables",
|
||||
]
|
||||
|
||||
AllowCompilerWarnings()
|
||||
NoVisibilityFlags()
|
||||
|
Loading…
Reference in New Issue
Block a user