]> xenbits.xensource.com Git - people/julieng/xen-unstable.git/commit
compat: enforce distinguishable file names in symbol table
authorJan Beulich <jbeulich@suse.com>
Tue, 3 Nov 2015 17:07:20 +0000 (18:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 3 Nov 2015 17:07:20 +0000 (18:07 +0100)
commit8b6ef9c152edceabecc7f90c811cd538a7b7a110
tree1d6b0dfc08e6c7d7b82551b89f2d4022f21b8087
parentd37d63d4b548b5fc214c71b2987a86ac0bbf4965
compat: enforce distinguishable file names in symbol table

To make it possible to tell apart the static symbols in files built a
second time for compat guest support, arrange for their source file
names to be prefixed by a suitable path. We can't do this without
explicit .file directives, since gcc has always been stripping paths
from file names handed to the internally generated .file directive.
However, we can leverage __FILE__ if we make sure the second instance
gets compiled out of other than the very directory the wrapper sits in.

Where suitable, remove the long redundant explicit inclusions of
xen/config.h at once.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
14 files changed:
xen/Rules.mk
xen/arch/x86/Makefile
xen/arch/x86/x86_64/Makefile
xen/arch/x86/x86_64/compat.c
xen/arch/x86/x86_64/mm.c
xen/arch/x86/x86_64/physdev.c
xen/arch/x86/x86_64/platform_hypercall.c
xen/common/Makefile
xen/common/compat/Makefile [deleted file]
xen/common/compat/domain.c
xen/common/compat/kernel.c
xen/common/compat/memory.c
xen/common/compat/multicall.c
xen/include/Makefile