From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicholas Piggin Subject: [PATCH 0/3 v3] kbuild changes, thin archives, --gc-sections Date: Wed, 24 Aug 2016 22:29:18 +1000 Message-ID: <1472041761-14414-1-git-send-email-npiggin@gmail.com> Return-path: Sender: linux-kbuild-owner@vger.kernel.org To: Michal Marek , linux-kbuild@vger.kernel.org Cc: Nicholas Piggin , linux-arch@vger.kernel.org, Sam Ravnborg , Stephen Rothwell , Arnd Bergmann , Nicolas Pitre , Segher Boessenkool , Alan Modra List-Id: linux-arch.vger.kernel.org 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(-) -- 2.8.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f68.google.com ([209.85.220.68]:34506 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754505AbcHXMaT (ORCPT ); Wed, 24 Aug 2016 08:30:19 -0400 From: Nicholas Piggin Subject: [PATCH 0/3 v3] kbuild changes, thin archives, --gc-sections Date: Wed, 24 Aug 2016 22:29:18 +1000 Message-ID: <1472041761-14414-1-git-send-email-npiggin@gmail.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Michal Marek , linux-kbuild@vger.kernel.org Cc: Nicholas Piggin , linux-arch@vger.kernel.org, Sam Ravnborg , Stephen Rothwell , Arnd Bergmann , Nicolas Pitre , Segher Boessenkool , Alan Modra Message-ID: <20160824122918.48G1J0_PNUoodaTnpqtZZANHpDh6xFM79SkpICWElyM@z> 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(-) -- 2.8.1