blob: dffd1184c956cca4314eb4c1127f30cbaf373185 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001# Copyright 2003 - 2004 Pathscale, Inc
2# Released under the GPL
3
Al Virode2fe5e2006-03-31 02:30:11 -08004core-y += arch/um/sys-x86_64/
Linus Torvalds1da177e2005-04-16 15:20:36 -07005START := 0x60000000
6
Paolo 'Blaisorblade' Giarrusso20d00212005-07-14 00:33:43 -07007#We #undef __x86_64__ for kernelspace, not for userspace where
8#it's needed for headers to work!
Jeff Dikeff23db52006-06-30 01:55:58 -07009CFLAGS += -U__$(SUBARCH)__ -fno-builtin -m64
10USER_CFLAGS += -fno-builtin -m64
viro@ZenIV.linux.org.uk2624f122005-09-09 17:14:12 +010011CHECKFLAGS += -m64
Jeff Dikeff23db52006-06-30 01:55:58 -070012AFLAGS += -m64
13LDFLAGS += -m elf_x86_64
Linus Torvalds1da177e2005-04-16 15:20:36 -070014
15ELF_ARCH := i386:x86-64
16ELF_FORMAT := elf64-x86-64
Rob Landley53c0b592005-12-18 17:50:35 +010017
18# Not on all 64-bit distros /lib is a symlink to /lib64. PLD is an example.
19
20LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64
Jeff Dikeff23db52006-06-30 01:55:58 -070021LINK-y += -m64