Commit 22dbe211 authored by Ramon Nou's avatar Ramon Nou
Browse files

Add source files for manual libc interception build option

parent 19914ab9
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
@@ -142,6 +142,34 @@ target_sources(
)
endif ()

if (GKFS_BUILD_LIBC_INTERCEPTION_MANUAL)
target_sources(
    gkfs_libc_intercept_manual
    PRIVATE gkfs_functions.cpp
    gkfs_libc.cpp
    intercept.cpp
    hooks.cpp
    logging.cpp
    open_file_map.cpp
    open_dir.cpp
    path.cpp
    preload.cpp
    preload_context.cpp
    preload_util.cpp
    malleability.cpp
    cache.cpp
    rpc/rpc_types.cpp
    rpc/forward_data.cpp
    rpc/forward_data_proxy.cpp
    rpc/forward_management.cpp
    rpc/forward_metadata.cpp
    rpc/forward_metadata_proxy.cpp
    rpc/forward_malleability.cpp
    syscalls/detail/syscall_info.c syscalls/util.S
   
)
endif ()

target_compile_definitions(gkfs_user_lib PUBLIC BYPASS_SYSCALL)
target_link_options(gkfs_user_lib PRIVATE -z noexecstack)
endif()