aboutsummaryrefslogtreecommitdiffstats
path: root/mk
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-06-19 13:56:19 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-06-19 14:26:19 +0100
commitbb9e70f847a290973945665d8abe717b9e2a18f8 (patch)
tree9fd270b0f995c0271974b847cd76a4af426d127f /mk
parent9b8f1d3f3bfa72e8375c16137cc15eac579ed256 (diff)
downloadsyslinux-bb9e70f847a290973945665d8abe717b9e2a18f8.tar.gz
syslinux-bb9e70f847a290973945665d8abe717b9e2a18f8.tar.xz
syslinux-bb9e70f847a290973945665d8abe717b9e2a18f8.zip
efi: Turn on symbol export whitelist
Reduce the default visibility of objects in efi/ as was done for BIOS in commit e4b3ce2dd82c ("Symbol export whitelist"). Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/efi.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/efi.mk b/mk/efi.mk
index 3c134450..24ac811f 100644
--- a/mk/efi.mk
+++ b/mk/efi.mk
@@ -40,7 +40,8 @@ CFLAGS = -I$(EFIINC) -I$(EFIINC)/$(EFI_SUBARCH) \
-I$(core)/include -I$(core)/ $(CARCHOPT) \
-I$(com32)/lib/ -I$(com32)/libutil/include -std=gnu99 \
-DELF_DEBUG -DSYSLINUX_EFI -I$(objdir) \
- $(GCCWARN) -D__COM32__ -mno-red-zone -DLDLINUX=\"$(LDLINUX)\"
+ $(GCCWARN) -D__COM32__ -mno-red-zone \
+ -DLDLINUX=\"$(LDLINUX)\" -fvisibility=hidden
# gnuefi sometimes installs these under a gnuefi/ directory, and sometimes not
CRT0 := $(shell find $(LIBDIR) -name crt0-efi-$(EFI_SUBARCH).o 2>/dev/null | tail -n1)