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

* Re: [PATCH] x86: wakeup.lds.S - section ordering fix
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Machek @ 2008-05-12 13:53 UTC (permalink / raw)
  To: Cyrill Gorcunov, Rafael J. Wysocki
  Cc: H. Peter Anvin, Sam Ravnborg, Ingo Molnar, Thomas Gleixner, LKML

On Sun 2008-05-11 22:46:38, Cyrill Gorcunov wrote:
> 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

Looks okay to me, but I can't easily test it right now.

But I think Rafael tested identical patch, you can add my ACK in such
case.

								Pavel

> 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 = .;
>  

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: [PATCH] x86: wakeup.lds.S - section ordering fix
  2008-05-12 13:53 ` Pavel Machek
@ 2008-05-12 14:14   ` Cyrill Gorcunov
  2008-05-13 12:10     ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Cyrill Gorcunov @ 2008-05-12 14:14 UTC (permalink / raw)
  To: Pavel Machek
  Cc: Rafael J. Wysocki, H. Peter Anvin, Sam Ravnborg, Ingo Molnar,
	Thomas Gleixner, LKML

[Pavel Machek - Mon, May 12, 2008 at 03:53:43PM +0200]
| On Sun 2008-05-11 22:46:38, Cyrill Gorcunov wrote:
| > 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
| 
| Looks okay to me, but I can't easily test it right now.
| 
| But I think Rafael tested identical patch, you can add my ACK in such
| case.
| 
| 								Pavel
| 

Yes, Rafael tested the same (in contents) patch. Actually there was
a bit time-screwed situation - I've proposed a solution, Peter was
agreed with, I said him that I'll cook a patch, meanwhile I've got an internet
connection problem, and at moment Rafael tested the same patch he made by own.
A bit funny situation ;) So I think in this patch should be then:

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Acked-by: Pavel Machek <pavel@suse.cz>

Anyway, thanks to all being involved ;)

		- Cyrill -

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

* Re: [PATCH] x86: wakeup.lds.S - section ordering fix
  2008-05-12 14:14   ` Cyrill Gorcunov
@ 2008-05-13 12:10     ` Ingo Molnar
  0 siblings, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2008-05-13 12:10 UTC (permalink / raw)
  To: Cyrill Gorcunov
  Cc: Pavel Machek, Rafael J. Wysocki, H. Peter Anvin, Sam Ravnborg,
	Thomas Gleixner, LKML


* Cyrill Gorcunov <gorcunov@gmail.com> wrote:

> [Pavel Machek - Mon, May 12, 2008 at 03:53:43PM +0200]
> | On Sun 2008-05-11 22:46:38, Cyrill Gorcunov wrote:
> | > 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
> | 
> | Looks okay to me, but I can't easily test it right now.
> | 
> | But I think Rafael tested identical patch, you can add my ACK in such
> | case.
> 
> Yes, Rafael tested the same (in contents) patch. Actually there was a 
> bit time-screwed situation - I've proposed a solution, Peter was 
> agreed with, I said him that I'll cook a patch, meanwhile I've got an 
> internet connection problem, and at moment Rafael tested the same 
> patch he made by own. A bit funny situation ;) So I think in this 
> patch should be then:

applied, thanks.

	Ingo

^ 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