From 9587934403c29336184361f5e9a8cde09ff3c9c5 Mon Sep 17 00:00:00 2001 From: Richard Petri Date: Tue, 16 Jan 2024 22:36:40 +0100 Subject: [PATCH] Properly wrap missing libc functions and shut up linker warning --- mk/mps2-an386.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mk/mps2-an386.mk b/mk/mps2-an386.mk index 7c33809c..ab128df5 100644 --- a/mk/mps2-an386.mk +++ b/mk/mps2-an386.mk @@ -21,6 +21,16 @@ CPPFLAGS += \ LDFLAGS += \ --specs=nosys.specs \ -Wl,--wrap=_sbrk \ + -Wl,--wrap=_open \ + -Wl,--wrap=_close \ + -Wl,--wrap=_isatty \ + -Wl,--wrap=_kill \ + -Wl,--wrap=_lseek \ + -Wl,--wrap=_read \ + -Wl,--wrap=_write \ + -Wl,--wrap=_fstat \ + -Wl,--wrap=_getpid \ + -Wl,--no-warn-rwx-segments \ -ffreestanding \ -T$(LDSCRIPT) \ $(ARCH_FLAGS)