mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
[XEN] Define -fvisibility=hidden in CFLAGS to reduce -fpic cost
when compiling for x86/64. Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
84804f40f9
commit
c6fed51d96
1 file changed
+3
@@ -42,6 +42,9 @@ endif
|
||||
ifeq ($(TARGET_SUBARCH),x86_64)
|
||||
CFLAGS += -mno-red-zone -fpic -fno-reorder-blocks
|
||||
CFLAGS += -fno-asynchronous-unwind-tables
|
||||
# -fvisibility=hidden reduces -fpic cost, if it's available
|
||||
CFLAGS += $(shell $(CC) -v --help 2>&1 | grep " -fvisibility=" | \
|
||||
grep -q hidden && echo "-fvisibility=hidden")
|
||||
LDFLAGS += -m elf_x86_64
|
||||
x86_32 := n
|
||||
x86_64 := y
|
||||
|
||||