mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-18 23:07:07 -05:00
Merge pull request #6524 from javierUDP/test/macos-conversion-execution
test(relinker): execute the AMD64-only conversion stubs on macOS
This commit is contained in:
2 files changed
+5
-2
No files matched your search
@@ -375,6 +375,9 @@ if(BUILD_TESTING)
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/elfpatcher/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/io/include
|
||||
)
|
||||
if(APPLE AND (CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64" OR (NOT CMAKE_OSX_ARCHITECTURES AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")))
|
||||
target_link_options(amd64_only_converter_tests PRIVATE "LINKER:-pagezero_size,0x10000")
|
||||
endif()
|
||||
add_test(NAME amd64_only_converter COMMAND amd64_only_converter_tests)
|
||||
add_test_executable(call_site_resolver_tests
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/relinker/tests/CallSiteResolverTests.cpp
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
#include <cstdint>
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) || defined(__APPLE__)
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
#include <functional>
|
||||
@@ -1289,7 +1289,7 @@ void linuxRipRelativePlacement() {
|
||||
|
||||
}
|
||||
|
||||
#if defined(__linux__) && defined(__x86_64__)
|
||||
#if (defined(__linux__) || defined(__APPLE__)) && defined(__x86_64__)
|
||||
std::uint64_t extrqReference(std::uint64_t value, std::uint64_t control) {
|
||||
const auto length = static_cast<unsigned>(control & 0x3f);
|
||||
const auto index = static_cast<unsigned>((control >> 8) & 0x3f);
|
||||
|
||||
Reference in new issue
Block a user