blob: 8ed362f93582e9723aaacde7325553f9de435383 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001# Copyright 2003 - 2004 Pathscale, Inc
2# Released under the GPL
3
Al Viro2b8232c2007-10-13 08:16:04 +01004core-y += arch/um/sys-x86_64/ arch/x86/crypto/
Linus Torvalds1da177e2005-04-16 15:20:36 -07005START := 0x60000000
6
Paolo 'Blaisorblade' Giarrusso1875a482006-10-11 01:21:31 -07007_extra_flags_ = -fno-builtin -m64
Paolo 'Blaisorblade' Giarrusso06837502006-09-27 01:50:27 -07008
Sam Ravnborga0f97e02007-10-14 22:21:35 +02009KBUILD_CFLAGS += $(_extra_flags_)
Paolo 'Blaisorblade' Giarrusso06837502006-09-27 01:50:27 -070010
Al Viroca5cd872007-10-29 04:31:16 +000011CHECKFLAGS += -m64 -D__x86_64__
Sam Ravnborg222d3942007-10-15 21:59:31 +020012KBUILD_AFLAGS += -m64
Jeff Dikeff23db52006-06-30 01:55:58 -070013LDFLAGS += -m elf_x86_64
Sam Ravnborg06c50402007-10-15 22:17:25 +020014KBUILD_CPPFLAGS += -m64
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
16ELF_ARCH := i386:x86-64
17ELF_FORMAT := elf64-x86-64
Al Viro2b8232c2007-10-13 08:16:04 +010018HEADER_ARCH := x86
Rob Landley53c0b592005-12-18 17:50:35 +010019
20# Not on all 64-bit distros /lib is a symlink to /lib64. PLD is an example.
21
22LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64
Jeff Dikeff23db52006-06-30 01:55:58 -070023LINK-y += -m64