Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 4404983

Browse files
authored
Merge pull request #124 from en4bz/version-script
Add a linker version script
2 parents fef1c49 + 5708e9b commit 4404983

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ set_target_properties(syscall_intercept_base_c
139139
PROPERTIES C_VISIBILITY_PRESET hidden)
140140

141141
target_link_libraries(syscall_intercept_shared
142-
PRIVATE ${CMAKE_DL_LIBS} ${capstone_LIBRARIES})
142+
PRIVATE ${CMAKE_DL_LIBS} ${capstone_LIBRARIES}
143+
"-Wl,--version-script=${CMAKE_SOURCE_DIR}/version.map")
143144

144145
target_link_libraries(syscall_intercept_static
145146
INTERFACE ${CMAKE_DL_LIBS} ${capstone_LIBRARIES})

version.map

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
global:
3+
syscall_no_intercept;
4+
syscall_hook_in_process_allowed;
5+
intercept_hook_point;
6+
intercept_hook_point_clone_parent;
7+
intercept_hook_point_clone_child;
8+
local:
9+
*;
10+
};

0 commit comments

Comments
 (0)