diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-12-15 11:53:45 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2006-12-15 11:53:45 +0000 |
commit | 2f760bd64d513f774358017404b34920226be6e0 (patch) | |
tree | dfc7835cf5eca9db17f021c3fb60d4c4460c11f8 | |
parent | 1c67fc6446a712cc0a1a50e54ec11496f576b93c (diff) | |
download | xen-2f760bd64d513f774358017404b34920226be6e0.tar.gz xen-2f760bd64d513f774358017404b34920226be6e0.tar.bz2 xen-2f760bd64d513f774358017404b34920226be6e0.zip |
[TOOLS] USe -mno-direct-seg-refs when building on i386.
Signed-off-by: Keir Fraser <keir@xensource.com>
-rw-r--r-- | tools/Rules.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/Rules.mk b/tools/Rules.mk index b676b423b9..f4524eea7c 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -19,6 +19,10 @@ CFLAGS += $(shell getconf LFS_CFLAGS) CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE LDFLAGS += $(shell getconf LFS_LDFLAGS) +# 32-bit x86 does not perform well with -ve segment accesses on Xen. +CFLAGS-$(CONFIG_X86_32) += $(call cc-option,$(CC),-mno-tls-direct-seg-refs) +CFLAGS += $(CFLAGS-y) + %.opic: %.c $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $< |