Skip to content

Commit

Permalink
x86: wakeup.lds.S - section ordering fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed May 12, 2008
1 parent f8955eb commit 8c6b0ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arch/x86/kernel/acpi/realmode/wakeup.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ ENTRY(_start)

SECTIONS
{
. = HEADER_OFFSET;
.header : {
*(.header)
}

. = 0;
.text : {
*(.text*)
Expand Down Expand Up @@ -50,6 +45,11 @@ SECTIONS
__bss_end = .;
}

. = HEADER_OFFSET;
.header : {
*(.header)
}

. = ALIGN(16);
_end = .;

Expand Down

0 comments on commit 8c6b0ef

Please sign in to comment.