Re: 2.6.26-rc1 on x86: ld: warning: dot moved backwards before `.text'

From: H. Peter Anvin
Date: Sun May 11 2008 - 14:16:25 EST


Cyrill Gorcunov wrote:

Should not it be something like
---

diff --git a/arch/x86/kernel/acpi/realmode/wakeup.lds.S b/arch/x86/kernel/acpi/realmode/wakeup.lds.S
index 22fab6c..cccf62d 100644
--- a/arch/x86/kernel/acpi/realmode/wakeup.lds.S
+++ b/arch/x86/kernel/acpi/realmode/wakeup.lds.S
@@ -12,11 +12,6 @@ ENTRY(_start)
SECTIONS
{
- . = HEADER_OFFSET;
- .header : {
- *(.header)
- }
-
. = 0;
.text : {
*(.text*)
@@ -53,6 +48,11 @@ SECTIONS
. = ALIGN(16);
_end = .;
+ . = HEADER_OFFSET;
+ .header : {
+ *(.header)
+ }
+
/DISCARD/ : {
*(.note*)
}
---
- Cyrill -

Yes. This was the way I originally had it, then Pavel decided to move the header to the end.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/