diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-10-01 17:47:25 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-10-01 17:47:25 +0200 |
commit | 649eef78f8c06bb5275736f11434e4087392b8f5 (patch) | |
tree | b81e7e841595c9323f0e9e6a463de8f1986bf21d /Makefile.inc | |
parent | 54f3087873fa1083c809939e74caf1ff29efc9d7 (diff) |
Added custom linker script.
* discard .xdata section (unwind data for SEH will be done in another way)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc index 1689579..c4ac08d 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -59,6 +59,8 @@ ifneq ($(WERROR),) CFLAGS += -Werror endif +#PRINT_LDSCRIPT = -Wl,--verbose + CXXFLAGS := -fno-exceptions -fno-rtti -fuse-cxa-atexit EASTL_CXXFLAGS := -I$(DPP_ROOT)/EASTL/include -I$(DPP_ROOT)/EASTL/test/packages/EABase/include/Common \ -DEASTL_USER_CONFIG_HEADER="<eastl_user_config.hpp>" \ @@ -81,7 +83,9 @@ DRIVER_LDFLAGS := -shared \ -Wl,--gc-sections \ -Wl,--exclude-all-symbols \ -Wl,--entry,_CRT_DriverEntry \ - -nostartfiles -nodefaultlibs -nostdlib + $(PRINT_LDSCRIPT) \ + -nostartfiles -nodefaultlibs -nostdlib \ + -T$(DPP_ROOT)/ld-script.txt DRIVER_LIBS := -lntoskrnl -lhal USER_LDFLAGS := -Wl,--dynamicbase -Wl,--nxcompat -Wl,--gc-sections USER_LIBS := |