mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 21:40:33 +00:00
DynamicLoader: Disable stack protector in some files for RISC-V
This commit is contained in:
parent
872bf51d8f
commit
c20bc22bae
Notes:
sideshowbarker
2024-07-17 01:51:00 +09:00
Author: https://github.com/spholz Commit: https://github.com/SerenityOS/serenity/commit/c20bc22bae Pull-request: https://github.com/SerenityOS/serenity/pull/23457 Reviewed-by: https://github.com/BertalanD ✅
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ set(SOURCES ${LOADER_SOURCES} ${AK_SOURCES} ${ELF_SOURCES} ${LIBC_SOURCES1} ${LI
|
|||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -nostdlib -pie -fpie -DNO_TLS")
|
||||
|
||||
if ("${SERENITY_ARCH}" STREQUAL "aarch64")
|
||||
# On aarch64 the stack protector would be accessed before the Loader can relocate itself.
|
||||
if (("${SERENITY_ARCH}" STREQUAL "aarch64") OR ("${SERENITY_ARCH}" STREQUAL "riscv64"))
|
||||
# On aarch64 and riscv64 the stack protector would be accessed before the Loader can relocate itself.
|
||||
set_source_files_properties(main.cpp ../Libraries/LibELF/Relocation.cpp PROPERTIES COMPILE_FLAGS "-fno-stack-protector")
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue