mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86/hvmloader: Don't build as PIC
HVMLoader is not relocatable in memory, and 32bit PIC code has a large overhead. Override the compilers choice of pic/no-pic and force it to be non-relocatable. Bloat-o-meter reports a net: add/remove: 0/0 grow/shrink: 3/107 up/down: 14/-3370 (-3356) No functional change. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
d7aaecd3e1
commit
90b1307ffb
1 file changed
+1
-1
@@ -23,7 +23,7 @@ include $(XEN_ROOT)/tools/firmware/Rules.mk
|
||||
# SMBIOS spec requires format mm/dd/yyyy
|
||||
SMBIOS_REL_DATE ?= $(shell date +%m/%d/%Y)
|
||||
|
||||
CFLAGS += $(CFLAGS_xeninclude)
|
||||
CFLAGS += $(CFLAGS_xeninclude) -fno-pic
|
||||
|
||||
# We mustn't use tools-only public interfaces.
|
||||
CFLAGS += -D__XEN_INTERFACE_VERSION__=__XEN_LATEST_INTERFACE_VERSION__
|
||||
|
||||