From 9ec0fbf957c2df59f9e5acf6bed68e64dc7e2668 Mon Sep 17 00:00:00 2001 From: Tau Date: Fri, 23 Nov 2018 18:12:36 -0500 Subject: [PATCH] Suppress hook DLL exports --- cardhook/cardhook.def | 4 ---- cardhook/meson.build | 1 - chunihook/chunihook.def | 4 ---- chunihook/meson.build | 1 - meson.build | 1 + minihook/meson.build | 1 - minihook/minihook.def | 4 ---- 7 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 cardhook/cardhook.def delete mode 100644 chunihook/chunihook.def delete mode 100644 minihook/minihook.def diff --git a/cardhook/cardhook.def b/cardhook/cardhook.def deleted file mode 100644 index af6a011..0000000 --- a/cardhook/cardhook.def +++ /dev/null @@ -1,4 +0,0 @@ -LIBRARY cardhook - -EXPORTS - DllMain@12 @1 NONAME diff --git a/cardhook/meson.build b/cardhook/meson.build index 6714c98..78b996f 100644 --- a/cardhook/meson.build +++ b/cardhook/meson.build @@ -3,7 +3,6 @@ shared_library( name_prefix : '', include_directories: inc, implicit_include_directories : false, - vs_module_defs : 'cardhook.def', c_pch : '../precompiled.h', dependencies : [ capnhook.get_variable('hook_dep'), diff --git a/chunihook/chunihook.def b/chunihook/chunihook.def deleted file mode 100644 index 153952b..0000000 --- a/chunihook/chunihook.def +++ /dev/null @@ -1,4 +0,0 @@ -LIBRARY chunihook - -EXPORTS - DllMain@12 @1 NONAME diff --git a/chunihook/meson.build b/chunihook/meson.build index 27f9190..667cf04 100644 --- a/chunihook/meson.build +++ b/chunihook/meson.build @@ -3,7 +3,6 @@ shared_library( name_prefix : '', include_directories : inc, implicit_include_directories : false, - vs_module_defs : 'chunihook.def', c_pch : '../precompiled.h', dependencies : [ capnhook.get_variable('hook_dep'), diff --git a/meson.build b/meson.build index d566102..59f860f 100644 --- a/meson.build +++ b/meson.build @@ -9,6 +9,7 @@ add_project_arguments( ) add_project_link_arguments( + '-Wl,--exclude-all-symbols', '-Wl,--gc-sections', '-static-libgcc', language: 'c', diff --git a/minihook/meson.build b/minihook/meson.build index 5dd71a1..1acf998 100644 --- a/minihook/meson.build +++ b/minihook/meson.build @@ -3,7 +3,6 @@ shared_library( name_prefix : '', include_directories: inc, implicit_include_directories : false, - vs_module_defs : 'minihook.def', c_pch : '../precompiled.h', dependencies : [ capnhook.get_variable('hook_dep'), diff --git a/minihook/minihook.def b/minihook/minihook.def deleted file mode 100644 index d9cbc6d..0000000 --- a/minihook/minihook.def +++ /dev/null @@ -1,4 +0,0 @@ -LIBRARY minihook - -EXPORTS - DllMain@12 @1 NONAME