X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=Makefile;h=6aa709df6bde63167d9f0dd507e2931b14991505;hb=785d21ba2f447fb26df4b22f45653763beb767ea;hp=bb60045526c43f8c3c4ef36a493cff5b77f6478a;hpb=56c003e4db4adb1d57e599fb4c7d39f9130f9db1;p=linux-2.6-block.git diff --git a/Makefile b/Makefile index bb60045526c4..6aa709df6bde 100644 --- a/Makefile +++ b/Makefile @@ -1006,8 +1006,8 @@ KBUILD_CFLAGS += $(CC_FLAGS_CFI) export CC_FLAGS_CFI endif -ifdef CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64B -KBUILD_CFLAGS += -falign-functions=64 +ifneq ($(CONFIG_FUNCTION_ALIGNMENT),0) +KBUILD_CFLAGS += -falign-functions=$(CONFIG_FUNCTION_ALIGNMENT) endif # arch Makefile may override CC so keep this after arch Makefile is included @@ -1120,7 +1120,7 @@ endif # We never want expected sections to be placed heuristically by the # linker. All sections should be explicitly named in the linker script. ifdef CONFIG_LD_ORPHAN_WARN -LDFLAGS_vmlinux += --orphan-handling=warn +LDFLAGS_vmlinux += --orphan-handling=$(CONFIG_LD_ORPHAN_WARN_LEVEL) endif # Align the bit size of userspace programs with the kernel