lkml.org 
[lkml]   [2007]   [Jan]   [2]   [last100]   RSS-feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Complete thread (EXPERIMENTAL)
Patch in this message
/
DateTue, 2 Jan 2007 11:41:47 +0530
FromVivek Goyal <>
SubjectRe: Patch "i386: Relocatable kernel support" causes instant reboot
Digg This
On Mon, Jan 01, 2007 at 10:39:13PM +0100, Jean Delvare wrote:
Hi Vivek,

Sorry for the delay, I'm just back from vacation. I tried it all again with 2.6.20-rc3 just in case, but the problem I've hit is still present.

Hi Jean,

Problem in not fixed yet in -rc3. So testing -rc3 will not help.
Segher had suggested to use .section command to specifically mark .text.head section as AX (allocatable and executable) to solve the problem.

Can you please try the attached patch to see if it solves your problem.

Thanks
Vivek


Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
---
 arch/i386/boot/compressed/head.S |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

[view this diff only]
diff -puN arch/i386/boot/compressed/head.S~jean-reboot-issue-fix arch/i386/boot/compressed/head.S
--- linux-2.6.20-rc2-reloc/arch/i386/boot/compressed/head.S~jean-reboot-issue-fix	2007-01-02 09:54:56.000000000 +0530
+++ linux-2.6.20-rc2-reloc-root/arch/i386/boot/compressed/head.S	2007-01-02 09:57:46.000000000 +0530
@@ -28,7 +28,7 @@
 #include <asm/page.h>
 #include <asm/boot.h>
 
-.section ".text.head"
+.section ".text.head","ax",@progbits
 	.globl startup_32
 
 startup_32:
_
\
ISP Services
Valid XHTML 1.0!\ /
Valid CSS! Last update: 2007-01-02 06:15    [W:0.586 / U:8.320 seconds]
©2003-2005 Jasper Spaans