Skip to content

Commit

Permalink
Properly wrap missing libc functions and shut up linker warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rpls committed Jan 16, 2024
1 parent b7b2b6d commit 9587934
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mk/mps2-an386.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9587934

Please sign in to comment.