Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | # Copyright 2003 - 2004 Pathscale, Inc |
2 | # Released under the GPL | |
3 | ||
2b8232ce | 4 | core-y += arch/um/sys-x86_64/ arch/x86/crypto/ |
1da177e4 LT |
5 | START := 0x60000000 |
6 | ||
1875a48f | 7 | _extra_flags_ = -fno-builtin -m64 |
06837504 | 8 | |
a0f97e06 | 9 | KBUILD_CFLAGS += $(_extra_flags_) |
06837504 | 10 | |
ca5cd877 | 11 | CHECKFLAGS += -m64 -D__x86_64__ |
222d394d | 12 | KBUILD_AFLAGS += -m64 |
ff23db53 | 13 | LDFLAGS += -m elf_x86_64 |
06c5040c | 14 | KBUILD_CPPFLAGS += -m64 |
1da177e4 LT |
15 | |
16 | ELF_ARCH := i386:x86-64 | |
17 | ELF_FORMAT := elf64-x86-64 | |
2b8232ce | 18 | HEADER_ARCH := x86 |
53c0b59d RL |
19 | |
20 | # Not on all 64-bit distros /lib is a symlink to /lib64. PLD is an example. | |
21 | ||
22 | LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64 | |
ff23db53 | 23 | LINK-y += -m64 |
4f81c535 JD |
24 | |
25 | # Do unit-at-a-time unconditionally on x86_64, following the host | |
26 | KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time) |