blob: a9cd7e77a7abcf01f1bdef701d2beda93d0aea93 [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
Jeff Dike4f81c532008-07-07 13:36:56 -040024
25# Do unit-at-a-time unconditionally on x86_64, following the host
26KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time)