aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-25 22:41:32 -0400
committerIan Moffett <ian@osmora.org>2024-05-25 22:41:32 -0400
commit94d6ea02c510ca3752d9667dac13bfb16ab2ee2c (patch)
tree8003cb9d7fd1039d40fb1954374a5eb9fe695b94 /usr.sbin
parentbd93d4966c5d78cb4ee2ab84d32890ea1ca77d53 (diff)
build: Add user linker script
This ensures the memory layout is in a proper state Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sbin.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/sbin.mk b/usr.sbin/sbin.mk
index 763e6ec..a7a7bb9 100644
--- a/usr.sbin/sbin.mk
+++ b/usr.sbin/sbin.mk
@@ -1,4 +1,5 @@
CC =
LIBDIR =
USRDIR =
-INTERNAL_CFLAGS = -znoexecstack -nostdlib -I$(USRDIR)/include/ $(USRDIR)/lib/libc.a
+LDSCRIPT =
+INTERNAL_CFLAGS = -T$(LDSCRIPT) -znoexecstack -nostdlib -I$(USRDIR)/include/ $(USRDIR)/lib/libc.a