diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2017-06-09 01:24:17 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-06-29 20:03:05 -0400 |
commit | 799c43415442414b1032580c47684cb709dfed6d (patch) | |
tree | 3ac5e1e130227865eb4c83c22254707de2a81859 | |
parent | 827880ec260ba048f95fe646b96a205c394fa0f0 (diff) |
kbuild: thin archives make default for all archs
Make thin archives build the default, but keep the config option
to allow exemptions if any breakage can't be quickly solved.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r-- | Documentation/process/changes.rst | 9 | ||||
-rw-r--r-- | arch/Kconfig | 2 | ||||
-rw-r--r-- | arch/powerpc/Kconfig | 8 |
3 files changed, 5 insertions, 14 deletions
diff --git a/Documentation/process/changes.rst b/Documentation/process/changes.rst index e25d63f8c0da..68be1bbbe631 100644 --- a/Documentation/process/changes.rst +++ b/Documentation/process/changes.rst | |||
@@ -31,7 +31,7 @@ you probably needn't concern yourself with isdn4k-utils. | |||
31 | ====================== =============== ======================================== | 31 | ====================== =============== ======================================== |
32 | GNU C 3.2 gcc --version | 32 | GNU C 3.2 gcc --version |
33 | GNU make 3.81 make --version | 33 | GNU make 3.81 make --version |
34 | binutils 2.12 ld -v | 34 | binutils 2.20 ld -v |
35 | util-linux 2.10o fdformat --version | 35 | util-linux 2.10o fdformat --version |
36 | module-init-tools 0.9.10 depmod -V | 36 | module-init-tools 0.9.10 depmod -V |
37 | e2fsprogs 1.41.4 e2fsck -V | 37 | e2fsprogs 1.41.4 e2fsck -V |
@@ -75,10 +75,9 @@ You will need GNU make 3.81 or later to build the kernel. | |||
75 | Binutils | 75 | Binutils |
76 | -------- | 76 | -------- |
77 | 77 | ||
78 | Linux on IA-32 has recently switched from using ``as86`` to using ``gas`` for | 78 | The build system has, as of 4.13, switched to using thin archives (`ar T`) |
79 | assembling the 16-bit boot code, removing the need for ``as86`` to compile | 79 | rather than incremental linking (`ld -r`) for built-in.o intermediate steps. |
80 | your kernel. This change does, however, mean that you need a recent | 80 | This requires binutils 2.20 or newer. |
81 | release of binutils. | ||
82 | 81 | ||
83 | Perl | 82 | Perl |
84 | ---- | 83 | ---- |
diff --git a/arch/Kconfig b/arch/Kconfig index 6c00e5b00f8b..3abe581878d6 100644 --- a/arch/Kconfig +++ b/arch/Kconfig | |||
@@ -511,7 +511,7 @@ config CC_STACKPROTECTOR_STRONG | |||
511 | endchoice | 511 | endchoice |
512 | 512 | ||
513 | config THIN_ARCHIVES | 513 | config THIN_ARCHIVES |
514 | bool | 514 | def_bool y |
515 | help | 515 | help |
516 | Select this if the architecture wants to use thin archives | 516 | Select this if the architecture wants to use thin archives |
517 | instead of ld -r to create the built-in.o files. | 517 | instead of ld -r to create the built-in.o files. |
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index f7c8f9972f61..80d882a78426 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -472,14 +472,6 @@ config MPROFILE_KERNEL | |||
472 | depends on PPC64 && CPU_LITTLE_ENDIAN | 472 | depends on PPC64 && CPU_LITTLE_ENDIAN |
473 | def_bool !DISABLE_MPROFILE_KERNEL | 473 | def_bool !DISABLE_MPROFILE_KERNEL |
474 | 474 | ||
475 | config USE_THIN_ARCHIVES | ||
476 | bool "Build the kernel using thin archives" | ||
477 | default n | ||
478 | select THIN_ARCHIVES | ||
479 | help | ||
480 | Build the kernel using thin archives. | ||
481 | If you're unsure say N. | ||
482 | |||
483 | config IOMMU_HELPER | 475 | config IOMMU_HELPER |
484 | def_bool PPC64 | 476 | def_bool PPC64 |
485 | 477 | ||