x86/mm: override stored file names for multiply built sources

To make it possible to tell apart the static symbols therein, use their
object file names instead of their source ones.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
This commit is contained in:
Jan Beulich committed 2015-10-27 11:44:52 +01:00
1 parent 3980ccfb97
commit 1a771b7a0d
4 files changed
+10 -3

No files matched your search

+2 -2
View File
@@ -42,10 +42,10 @@ ALL_OBJS-y += $(BASEDIR)/xsm/built_in.o
ALL_OBJS-y += $(BASEDIR)/arch/$(TARGET_ARCH)/built_in.o
ALL_OBJS-$(x86) += $(BASEDIR)/crypto/built_in.o
CFLAGS += -fno-builtin -fno-common
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 += -nostdinc
CFLAGS += '-D__OBJECT_FILE__="$@"'
CFLAGS-$(XSM_ENABLE) += -DXSM_ENABLE
CFLAGS-$(FLASK_ENABLE) += -DFLASK_ENABLE
+3
View File
@@ -21,6 +21,9 @@
* along with this program; If not, see <http://www.gnu.org/licenses/>.
*/
/* Allow uniquely identifying static symbols in the 3 generated objects. */
asm(".file \"" __OBJECT_FILE__ "\"");
#include <xen/types.h>
#include <xen/mm.h>
#include <xen/paging.h>
+2
View File
@@ -18,6 +18,8 @@
* this program; If not, see <http://www.gnu.org/licenses/>.
*/
/* Allow uniquely identifying static symbols in the 3 generated objects. */
asm(".file \"" __OBJECT_FILE__ "\"");
#include <xen/domain_page.h>
#include <xen/paging.h>
+3 -1
View File
@@ -20,7 +20,9 @@
* along with this program; If not, see <http://www.gnu.org/licenses/>.
*/
#include <xen/config.h>
/* Allow uniquely identifying static symbols in the 3 generated objects. */
asm(".file \"" __OBJECT_FILE__ "\"");
#include <xen/types.h>
#include <xen/mm.h>
#include <xen/trace.h>
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.