symtab/Makefile: The OS symbol table should not be generated in the PROTECTED and KERNEL build modes. In those modes, the applications should link with libproxy which will provide symbol-compatible access to OS functions via a call gate.

This commit is contained in:
Gregory Nutt
2019-08-13 09:45:00 -06:00
parent 380198c985
commit 1da2f6b685
+16 -3
View File
@@ -36,9 +36,22 @@
-include $(TOPDIR)/Make.defs -include $(TOPDIR)/Make.defs
MKSYMTAB = $(TOPDIR)$(DELIM)tools$(DELIM)mksymtab$(HOSTEXEEXT) MKSYMTAB = $(TOPDIR)$(DELIM)tools$(DELIM)mksymtab$(HOSTEXEEXT)
CSVFILES = $(TOPDIR)$(DELIM)syscall$(DELIM)syscall.csv \
$(TOPDIR)$(DELIM)libs$(DELIM)libc$(DELIM)libc.csv \ # C library and math library symbols should be available in the FLAT
$(TOPDIR)$(DELIM)libs$(DELIM)libc$(DELIM)math.csv # and PROTECTED builds. KERNEL builds are separately linked and so should
# not need symbol tables.
CSVFILES = $(TOPDIR)$(DELIM)libs$(DELIM)libc$(DELIM)libc.csv
CSVFILES += $(TOPDIR)$(DELIM)libs$(DELIM)libc$(DELIM)math.csv
# In the PROTECTED and KERNEL builds, the syscall symbol table is not
# necessary. In those build modes, the applications should link with
# libproxy which will provide symbol-compatible access to OS functions
# via a call gate.
ifeq ($(CONFIG_BUILD_FLAT),y)
CSVFILES += $(TOPDIR)$(DELIM)syscall$(DELIM)syscall.csv
endif
DEPPATH = --dep-path . DEPPATH = --dep-path .