Skip to content

Commit

Permalink
Less relro
Browse files Browse the repository at this point in the history
  • Loading branch information
zackradisic committed Jul 17, 2024
1 parent d8732c1 commit dac47fb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ RUN --mount=type=tmpfs,target=/webkitbuild \
-DALLOW_LINE_AND_COLUMN_NUMBER_IN_BUILTINS=ON \
-DENABLE_SINGLE_THREADED_VM_ENTRY_SCOPE=ON \
-DENABLE_REMOTE_INSPECTOR=ON \
-DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld" \
-DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld -Wl,-z,norelro -Wl,-z,lazy -Wl,-no-pie " \
-DCMAKE_POSITION_INDEPENDENT_CODE=OFF \
-DCMAKE_AR=$(which llvm-ar) \
-DCMAKE_RANLIB=$(which llvm-ranlib) \
-DCMAKE_C_FLAGS="$CFLAGS" \
Expand Down
2 changes: 1 addition & 1 deletion Source/JavaScriptCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ if(CMAKE_COMPILER_IS_GNUCXX AND GCC_OFFLINEASM_SOURCE_MAP)
set_source_files_properties("llint/LowLevelInterpreter.cpp"
PROPERTIES
COMPILE_DEFINITIONS "POSTPROCESS_ASM=llint/LowLevelInterpreter.cpp"
COMPILE_OPTIONS "-fno-lto")
COMPILE_FLAGS "-fno-lto")
endif()

# When building JavaScriptCore as an object library, we need to make sure the
Expand Down
3 changes: 3 additions & 0 deletions Source/cmake/OptionsJSCOnly.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ if (NOT ENABLE_STATIC_JSC)
set(WebCore_LIBRARY_TYPE SHARED)
endif ()

if (USE_BUN_JSC_ADDITIONS)
set(CMAKE_POSITION_INDEPENDENT_CODE False)
endif ()

if (WIN32)
add_definitions(-DNOMINMAX)
Expand Down

0 comments on commit dac47fb

Please sign in to comment.