Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix presence of executable stack markings for hardened systems #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (IS_ARMHF_BUILD)
target_sources(mcpelauncher-client PRIVATE src/armhf_support.cpp src/armhf_support.h)
target_compile_definitions(mcpelauncher-client PRIVATE USE_ARMHF_SUPPORT)
else()
target_sources(mcpelauncher-client PRIVATE src/cpuid.cpp src/cpuid.h src/xbox_shutdown_patch.cpp src/xbox_shutdown_patch.h src/xbox_shutdown_patch.s src/texel_aa_patch.cpp src/texel_aa_patch.h)
target_sources(mcpelauncher-client PRIVATE src/cpuid.cpp src/cpuid.h src/xbox_shutdown_patch.cpp src/xbox_shutdown_patch.h src/xbox_shutdown_patch.S src/texel_aa_patch.cpp src/texel_aa_patch.h)
endif()

install(TARGETS mcpelauncher-client RUNTIME COMPONENT mcpelauncher-client DESTINATION bin)
Expand Down
4 changes: 4 additions & 0 deletions src/xbox_shutdown_patch.s → src/xbox_shutdown_patch.S
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ xbox_shutdown_patch_run_one_hook_2_1_9:
mov ecx, [esp+0x5C]
mov eax, [ecx+0xC]
ret

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif