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

Commit

Permalink
intercept all objects
Browse files Browse the repository at this point in the history
When the INTERCEPT_ALL_OBJS environment variable is set (to any value),
libsyscall_intercept attempts to patch all objects it finds. This is
not (yet) documented, as it is only meant to be used for a few testing
scenarios.
It also has caveats: the objects to be patched are filter based on their
names, thus if one libsyscall_intercept itself is not in loaded as a
library called libsyscall_intercept.so, it will try to intercept itself.
This can happen when it statically linked into some other object file.
  • Loading branch information
GBuella committed May 21, 2017
1 parent 782eb05 commit f6ac6c9
Show file tree
Hide file tree
Showing 12 changed files with 575 additions and 140 deletions.
3 changes: 3 additions & 0 deletions cmake/toolchain_features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ check_c_compiler_flag(-Wno-c90-c99-compat HAS_NO9099)
check_c_compiler_flag(-Wl,-nostdlib LINKER_HAS_NOSTDLIB)
check_c_compiler_flag(-Wl,--fatal-warnings HAS_WLFATAL)
check_c_compiler_flag(-Wno-unused-command-line-argument HAS_NOUNUSEDARG)
check_c_compiler_flag(-pie HAS_ARG_PIE)
check_c_compiler_flag(-nopie HAS_ARG_NOPIE)
check_c_compiler_flag(-no-pie HAS_ARG_NO_PIE)

if(HAS_WERROR AND DEVELOPER_MODE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
Expand Down
Loading

0 comments on commit f6ac6c9

Please sign in to comment.