diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-25 22:41:32 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-25 22:41:32 -0400 |
commit | 94d6ea02c510ca3752d9667dac13bfb16ab2ee2c (patch) | |
tree | 8003cb9d7fd1039d40fb1954374a5eb9fe695b94 /usr.sbin | |
parent | bd93d4966c5d78cb4ee2ab84d32890ea1ca77d53 (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.mk | 3 |
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 |