Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297742
b: refs/heads/master
c: 0bf6276
h: refs/heads/master
v: v3
  • Loading branch information
H. Peter Anvin committed Feb 27, 2012
1 parent 4429283 commit 77d82ff
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e0a449cab53814b73faf824284a6b3809b9b1316
refs/heads/master: 0bf6276392e990dd0da0ccd8e10f42597d503f29
4 changes: 2 additions & 2 deletions trunk/arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2175,7 +2175,7 @@ config IA32_AOUT
---help---
Support old a.out binaries in the 32bit emulation.

config X86_X32_ABI
config X86_X32
bool "x32 ABI for 64-bit mode (EXPERIMENTAL)"
depends on X86_64 && IA32_EMULATION && EXPERIMENTAL
---help---
Expand All @@ -2190,7 +2190,7 @@ config X86_X32_ABI

config COMPAT
def_bool y
depends on IA32_EMULATION || X86_X32_ABI
depends on IA32_EMULATION || X86_X32

config COMPAT_FOR_U64_ALIGNMENT
def_bool COMPAT
Expand Down
16 changes: 16 additions & 0 deletions trunk/arch/x86/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,22 @@ ifdef CONFIG_CC_STACKPROTECTOR
endif
endif

ifdef CONFIG_X86_X32
x32_ld_ok := $(call try-run,\
/bin/echo -e '1: .quad 1b' | \
$(CC) $(KBUILD_AFLAGS) -c -xassembler -o "$$TMP" - && \
$(OBJCOPY) -O elf32-x86-64 "$$TMP" "$$TMPO" && \
$(LD) -m elf32_x86_64 "$$TMPO" -o "$$TMP",y,n)
ifeq ($(x32_ld_ok),y)
CONFIG_X86_X32_ABI := y
KBUILD_AFLAGS += -DCONFIG_X86_X32_ABI
KBUILD_CFLAGS += -DCONFIG_X86_X32_ABI
else
$(warning CONFIG_X86_X32 enabled but no binutils support)
endif
endif
export CONFIG_X86_X32_ABI

# Don't unroll struct assignments with kmemcheck enabled
ifeq ($(CONFIG_KMEMCHECK),y)
KBUILD_CFLAGS += $(call cc-option,-fno-builtin-memcpy)
Expand Down

0 comments on commit 77d82ff

Please sign in to comment.