Skip to content

Commit

Permalink
[PATCH] uml: tidy biarch gcc support
Browse files Browse the repository at this point in the history
On top of the previous biarch changes for UML, this makes the preprocessor
changes a bit cleaner.  Specify the 64-bit build in CPPFLAGS on the x86_64
SUBARCH, rather than #undef'ing i386.  Compile-tested with i386 and x86_64
SUBARCHs.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Jul 15, 2006
1 parent a5df0d1 commit b076bb0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions arch/um/Makefile-x86_64
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ USER_CFLAGS += -fno-builtin -m64
CHECKFLAGS += -m64
AFLAGS += -m64
LDFLAGS += -m elf_x86_64
CPPFLAGS += -m64

ELF_ARCH := i386:x86-64
ELF_FORMAT := elf64-x86-64
Expand Down
2 changes: 0 additions & 2 deletions arch/um/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* in case the preprocessor is a 32bit one */
#undef i386
#ifdef CONFIG_LD_SCRIPT_STATIC
#include "uml.lds.S"
#else
Expand Down

0 comments on commit b076bb0

Please sign in to comment.