x86: wakeup.lds.S - section ordering fix
authorCyrill Gorcunov <gorcunov@gmail.com>
Sun, 11 May 2008 18:46:38 +0000 (22:46 +0400)
committerIngo Molnar <mingo@elte.hu>
Mon, 12 May 2008 19:27:51 +0000 (21:27 +0200)
To allow linker to catch sections overlapping we have to declare
them in appropriate order.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/acpi/realmode/wakeup.lds.S

index 22fab6c4be157b3a09d2bb78d389da403451879f..7da00b799cdab3806c97a42e4e854754c57fe01b 100644 (file)
@@ -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 = .;