build: avoid putting local absolute symbols in symbol tables
authorJan Beulich <jbeulich@suse.com>
Tue, 29 Mar 2016 15:16:47 +0000 (17:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 Mar 2016 15:16:47 +0000 (17:16 +0200)
They're not really useful past the building stage and only needlessly
increase binary file sizes.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/Rules.mk

index f29491e08d75d0c6665b87de9f0b3a3e57c22a49..d4dffde179491ed529723e2d60a086705958968b 100644 (file)
@@ -50,6 +50,7 @@ ALL_OBJS-$(CONFIG_X86)   += $(BASEDIR)/crypto/built_in.o
 CFLAGS += -nostdinc -fno-builtin -fno-common
 CFLAGS += -Werror -Wredundant-decls -Wno-pointer-arith
 CFLAGS += -pipe -g -D__XEN__ -include $(BASEDIR)/include/xen/config.h
+CFLAGS += -Wa,--strip-local-absolute
 CFLAGS += '-D__OBJECT_FILE__="$@"'
 
 CFLAGS-$(verbose)       += -DVERBOSE