public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: wakeup.lds.S - section ordering fix
@ 2008-05-11 18:46 Cyrill Gorcunov
  2008-05-12 13:53 ` Pavel Machek
  0 siblings, 1 reply; 4+ messages in thread
From: Cyrill Gorcunov @ 2008-05-11 18:46 UTC (permalink / raw)
  To: Pavel Machek
  Cc: H. Peter Anvin, Sam Ravnborg, Ingo Molnar, Thomas Gleixner, LKML

To allow linker to catch sections overlapping we have to declare
them in appropriate order.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---

Please test and review

Index: linux-2.6.git/arch/x86/kernel/acpi/realmode/wakeup.lds.S
===================================================================
--- linux-2.6.git.orig/arch/x86/kernel/acpi/realmode/wakeup.lds.S	2008-05-11 20:21:58.000000000 +0400
+++ linux-2.6.git/arch/x86/kernel/acpi/realmode/wakeup.lds.S	2008-05-11 22:34:42.000000000 +0400
@@ -12,11 +12,6 @@ ENTRY(_start)
 
 SECTIONS
 {
-	. = HEADER_OFFSET;
-	.header : {
-		 *(.header)
-	}
-
 	. = 0;
 	.text : {
 		 *(.text*)
@@ -50,6 +45,11 @@ SECTIONS
 		__bss_end = .;
 	}
 
+	. = HEADER_OFFSET;
+	.header : {
+		*(.header)
+	}
+
 	. = ALIGN(16);
 	_end = .;
 

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

end of thread, other threads:[~2008-05-13 12:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-11 18:46 [PATCH] x86: wakeup.lds.S - section ordering fix Cyrill Gorcunov
2008-05-12 13:53 ` Pavel Machek
2008-05-12 14:14   ` Cyrill Gorcunov
2008-05-13 12:10     ` Ingo Molnar

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