mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Linker script cleanup patches for arm
@ 2009-09-30 21:25 Tim Abbott
  2009-09-30 21:25 ` [PATCH 1/2] arm: convert to use __HEAD and HEAD_TEXT macros Tim Abbott
  2009-09-30 21:25 ` [PATCH 2/2] arm: Clean up linker script using new linker script macros Tim Abbott
  0 siblings, 2 replies; 13+ messages in thread
From: Tim Abbott @ 2009-09-30 21:25 UTC (permalink / raw)
  To: Russell King; +Cc: linux-arm-kernel, linux-kernel, Sam Ravnborg, Tim Abbott

This is an updated version of the patch series I sent in late July
cleaning up the arm architecture's linker scripts.  Version 2 was
rebased on top of Linus's current master; version 3 contains a fix for
a problem with CONFIG_XIP_KERNEL noted by Russell King.  Version 4
differs from version 3 only in being rebased on top of Linus' master.

This cross-architecture linker script cleanup project is in
preparation for adding support for building the kernel with
-ffunction-sections -fdata-sections, which is a prerequisite for
Ksplice.

	-Tim Abbott

Nelson Elhage (1):
  arm: Clean up linker script using new linker script macros.

Tim Abbott (1):
  arm: convert to use __HEAD and HEAD_TEXT macros.

 arch/arm/kernel/head-nommu.S  |    2 +-
 arch/arm/kernel/head.S        |    2 +-
 arch/arm/kernel/vmlinux.lds.S |   83 ++++++++++++-----------------------------
 3 files changed, 26 insertions(+), 61 deletions(-)


^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH 1/2] arm: convert to use __HEAD and HEAD_TEXT macros.
@ 2009-07-31 20:56 Tim Abbott
  2009-07-31 20:56 ` [PATCH 2/2] arm: Clean up linker script using new linker script macros Tim Abbott
  0 siblings, 1 reply; 13+ messages in thread
From: Tim Abbott @ 2009-07-31 20:56 UTC (permalink / raw)
  To: Linux Kernel Mailing List
  Cc: Sam Ravnborg, Anders Kaseorg, Nelson Elhage, Tim Abbott,
	Russell King, Linus Torvalds

This has the consequence of changing the section name used for head
code from ".text.head" to ".head.text".  Since this commit changes all
users in the architecture, this change should be harmless.

The .text.head output section is eliminated and the head text code is
included at the start of the .init output section.

Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
---
 arch/arm/kernel/head-nommu.S  |    2 +-
 arch/arm/kernel/head.S        |    2 +-
 arch/arm/kernel/vmlinux.lds.S |    8 +++-----
 3 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/arch/arm/kernel/head-nommu.S b/arch/arm/kernel/head-nommu.S
index cc87e17..4f10d1c 100644
--- a/arch/arm/kernel/head-nommu.S
+++ b/arch/arm/kernel/head-nommu.S
@@ -32,7 +32,7 @@
  * numbers for r1.
  *
  */
-	.section ".text.head", "ax"
+	__HEAD
 ENTRY(stext)
 	msr	cpsr_c, #PSR_F_BIT | PSR_I_BIT | SVC_MODE @ ensure svc mode
 						@ and irqs disabled
diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S
index 21e17dc..f1877a5 100644
--- a/arch/arm/kernel/head.S
+++ b/arch/arm/kernel/head.S
@@ -74,7 +74,7 @@
  * crap here - that's what the boot loader (or in extreme, well justified
  * circumstances, zImage) is for.
  */
-	.section ".text.head", "ax"
+	__HEAD
 ENTRY(stext)
 	msr	cpsr_c, #PSR_F_BIT | PSR_I_BIT | SVC_MODE @ ensure svc mode
 						@ and irqs disabled
diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
index 6937102..86c44e6 100644
--- a/arch/arm/kernel/vmlinux.lds.S
+++ b/arch/arm/kernel/vmlinux.lds.S
@@ -24,13 +24,11 @@ SECTIONS
 #else
 	. = PAGE_OFFSET + TEXT_OFFSET;
 #endif
-	.text.head : {
-		_stext = .;
-		_sinittext = .;
-		*(.text.head)
-	}
 
 	.init : {			/* Init code and data		*/
+		_stext = .;
+		_sinittext = .;
+			HEAD_TEXT
 			INIT_TEXT
 		_einittext = .;
 		__proc_info_begin = .;
-- 
1.6.3.3


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-10-13 16:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-30 21:25 [PATCH v4 0/2] Linker script cleanup patches for arm Tim Abbott
2009-09-30 21:25 ` [PATCH 1/2] arm: convert to use __HEAD and HEAD_TEXT macros Tim Abbott
2009-09-30 21:31   ` Sam Ravnborg
2009-09-30 21:25 ` [PATCH 2/2] arm: Clean up linker script using new linker script macros Tim Abbott
2009-09-30 21:39   ` Sam Ravnborg
2009-10-01 12:56     ` Russell King - ARM Linux
2009-10-02 20:32       ` Tim Abbott
2009-10-02 20:32         ` [PATCH v4 1/2] arm: convert to use __HEAD and HEAD_TEXT macros Tim Abbott
2009-10-02 20:32         ` [PATCH v4 2/2] arm: Clean up linker script using new linker script macros Tim Abbott
2009-10-12 14:41           ` Tim Abbott
2009-10-13  8:50             ` Uwe Kleine-König
2009-10-13 16:47               ` Tim Abbott
  -- strict thread matches above, loose matches on Subject: below --
2009-07-31 20:56 [PATCH 1/2] arm: convert to use __HEAD and HEAD_TEXT macros Tim Abbott
2009-07-31 20:56 ` [PATCH 2/2] arm: Clean up linker script using new linker script macros Tim Abbott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®