From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from biscayne-one-station.mit.edu (BISCAYNE-ONE-STATION.MIT.EDU [18.7.7.80]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4467CDDF96 for ; Fri, 1 May 2009 05:38:33 +1000 (EST) From: Tim Abbott To: Sam Ravnborg Subject: [PATCH 0/6] macros for section name cleanup Date: Thu, 30 Apr 2009 15:32:30 -0400 Message-Id: <1241119956-31453-1-git-send-email-tabbott@mit.edu> Cc: linux-mips@linux-mips.org, linux-m68k@vger.kernel.org, linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Denys Vlasenko , Greg Ungerer , Jeff Arnold , linuxppc-dev@ozlabs.org, Paul Mackerras , "H. Peter Anvin" , sparclinux@vger.kernel.org, Waseem Daher , linux-arm-kernel@lists.arm.linux.org.uk, linux-s390@vger.kernel.org, Jesper Nilsson , linux-am33-list@redhat.com, Yoshinori Sato , Helge Deller , Ingo Molnar , Geert Uytterhoeven , microblaze-uclinux@itee.uq.edu.au, Russell King , user-mode-linux-devel@lists.sourceforge.net, Heiko Carstens , Jeff Dike , dev-etrax@axis.com, Mikael Starvik , Tony Luck , Tim Abbott , Cyrill Gorcunov , Michal Simek , Richard Henderson , Chris Zankel , Bryan Wu , linux-m32r@ml.linux-m32r.org, linux-parisc@vger.kernel.org, Haavard Skinnemoen , Hirokazu Takata , Ralf Baechle , Anders Kaseorg , Kyle McMartin , Paul Mundt , Thomas Gleixner , linux-alpha@vger.kernel.org, Martin Schwidefsky , uclinux-dist-devel@blackfin.uclinux.org, Linus Torvalds , "David S. Miller" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Here are the architecture-independent macro definitions needed for to clean up the kernel's section names. The overall diffstat from this section name cleanup project is: 96 files changed, 261 insertions(+), 503 deletions(-) The decrease results from removing a lot of redundancy in the linker scripts. The long-term goal here is to add support for building the kernel with -ffunction-sections -fdata-sections. This requires renaming all the magic section names in the kernel of the form .text.foo, .data.foo, .bss.foo, and .rodata.foo to not have collisions with sections generated for code like: static int nosave = 0; /* -fdata-sections places in .data.nosave */ static void head(); /* -ffunction-sections places in .text.head */ Sam Ravnborg proposed that rather than just renaming all the sections outright, we should start by first getting more control over the section names used in the kernel so that we can later rename sections without touching too many files. These patch series implement that cleanup. Later, there will be another patch series to actually rename the sections. I'm hoping we can get just these macro definitions into 2.6.30 so that the arch maintainers don't have to grab the macro definitions for their trees while reviewing the patches for 2.6.31. Shortly, I'm going to send one patch series for each of the architectures updating those architectures to use these new macros (and otherwise cleaning up section names on those architectures). -Tim Abbott Tim Abbott (6): Add new macros for page-aligned data and bss sections. Add new NOSAVE_DATA linker script macro. Add new CACHELINE_ALIGNED_DATA linker script macro. Add new INIT_TASK_DATA() linker script macro. Add new READ_MOSTLY_DATA(align) linker script macro. Add support for __read_mostly to linux/cache.h include/asm-generic/vmlinux.lds.h | 27 +++++++++++++++++++++++++++ include/linux/cache.h | 6 ++++++ include/linux/init_task.h | 3 +++ include/linux/linkage.h | 9 +++++++++ 4 files changed, 45 insertions(+), 0 deletions(-)