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:
Mike Hommey 2023-06-30 08:11:43 +00:00
Родитель 8681e86caf
Коммит e6e7f961ea
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -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()