]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
kbuild: thin archives make default for all archs
authorNicholas Piggin <npiggin@gmail.com>
Fri, 9 Jun 2017 05:24:17 +0000 (15:24 +1000)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 30 Jun 2017 00:03:05 +0000 (09:03 +0900)
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>
Documentation/process/changes.rst
arch/Kconfig
arch/powerpc/Kconfig

index e25d63f8c0da1ecd36928924491fa8f66c03bf3a..68be1bbbe63136f70cec30efb4fc4ec20530da39 100644 (file)
@@ -31,7 +31,7 @@ you probably needn't concern yourself with isdn4k-utils.
 ====================== ===============  ========================================
 GNU C                  3.2              gcc --version
 GNU make               3.81             make --version
-binutils               2.12             ld -v
+binutils               2.20             ld -v
 util-linux             2.10o            fdformat --version
 module-init-tools      0.9.10           depmod -V
 e2fsprogs              1.41.4           e2fsck -V
@@ -75,10 +75,9 @@ You will need GNU make 3.81 or later to build the kernel.
 Binutils
 --------
 
-Linux on IA-32 has recently switched from using ``as86`` to using ``gas`` for
-assembling the 16-bit boot code, removing the need for ``as86`` to compile
-your kernel.  This change does, however, mean that you need a recent
-release of binutils.
+The build system has, as of 4.13, switched to using thin archives (`ar T`)
+rather than incremental linking (`ld -r`) for built-in.o intermediate steps.
+This requires binutils 2.20 or newer.
 
 Perl
 ----
index 6c00e5b00f8bd6ac4127b80fed79070843826069..3abe581878d6b73eb56d9c8977cabff8806880ef 100644 (file)
@@ -511,7 +511,7 @@ config CC_STACKPROTECTOR_STRONG
 endchoice
 
 config THIN_ARCHIVES
-       bool
+       def_bool y
        help
          Select this if the architecture wants to use thin archives
          instead of ld -r to create the built-in.o files.
index f7c8f9972f618109209e4892512ed903f6b865f3..80d882a78426d21e7b279f6d614a3cb3f863075c 100644 (file)
@@ -472,14 +472,6 @@ config MPROFILE_KERNEL
        depends on PPC64 && CPU_LITTLE_ENDIAN
        def_bool !DISABLE_MPROFILE_KERNEL
 
-config USE_THIN_ARCHIVES
-       bool "Build the kernel using thin archives"
-       default n
-       select THIN_ARCHIVES
-       help
-         Build the kernel using thin archives.
-         If you're unsure say N.
-
 config IOMMU_HELPER
        def_bool PPC64