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

H. Peter Anvin
2008-05-11T18:16:24Z

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