Skip to content

kbuild changes, thin archives, --gc-sections

Nicholas Piggin linux-arch linux-kbuild 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 9 repliesIn review
  2. v26 patches 11 repliesSuperseded
  3. v1 RFC5 patches 33 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kbuild: allow architectures to use thin archives instead of ld -rarch/Kconfig scripts/Makefile.build scripts/link-vmlinux.sh+85 -150 replies
2/3kbuild: allow archs to select link dead code/data eliminationMakefile arch/Kconfig include/asm-generic/vmlinux.lds.h +4 more+104 -630 replies
3/3kbuild: add arch specific post-link MakefileDocumentation/kbuild/makefiles.txt Makefile arch/Kconfig +1 more+39 -81 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchArnd BergmannNicolas Pitre
SeriesA-b A-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH 0/3 v3] kbuild changes, thin archives, --gc-sections

Hi Michal,

I ended up deciding to do a v3, because I had several changes accumulated, as described in patches.

I've also left off the powerpc arch patches -- they can be found in previous posts, for reference.

I've again tested ARM and it seems to be building okay and without performance regression with my configurations. I think it's going to be a matter of some toolchain options for them to go through. arm64, x86, powerpc, and arm for me all built fine with thin archives and --gc-sections enabled, so I can't see there being a fundamental issue that can't be solved. Worst case, the incremental link option can remain for a time.

Thanks,
Nick

Nicholas Piggin (2):
kbuild: allow archs to select link dead code/data elimination
kbuild: add arch specific post-link Makefile

Stephen Rothwell (1):
kbuild: allow architectures to use thin archives instead of ld -r

 Documentation/kbuild/makefiles.txt | 16 +++++++++
 Makefile                           | 19 ++++++++--
 arch/Kconfig                       | 26 ++++++++++++++
 include/asm-generic/vmlinux.lds.h  | 52 ++++++++++++++++------------
 include/linux/compiler.h           | 23 ++++++++++++
 include/linux/export.h             | 30 ++++++++--------
 include/linux/init.h               | 38 +++++++-------------
 init/Makefile                      |  2 ++
 scripts/Makefile.build             | 23 +++++++++---
 scripts/Makefile.modpost           | 14 +++++---
 scripts/link-vmlinux.sh            | 71 ++++++++++++++++++++++++++++++++------
 11 files changed, 228 insertions(+), 86 deletions(-)
Signature · 1 line
2.8.1