public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i386 kernel instant reboot with older binutils fix
@ 2007-01-03  4:16 Vivek Goyal
  2007-01-03  6:44 ` Eric W. Biederman
  2007-01-03 13:53 ` Adrian Bunk
  0 siblings, 2 replies; 8+ messages in thread
From: Vivek Goyal @ 2007-01-03  4:16 UTC (permalink / raw)
  To: linux kernel mailing list
  Cc: Linus Torvalds, Andi Kleen, Morton Andrew Morton,
	Eric W. Biederman, Fastboot mailing list, Adrian Bunk,
	Jean Delvare, Segher Boessenkool




o i386 kernel reboots instantly if compiled with binutils older than
  2.6.15.

o Older binutils required explicit flags to mark a section allocatable
  and executable(AX). Newer binutils automatically mark a section AX if
  the name starts with .text.

o While defining a new section using assembler "section" directive,
  explicitly mention section flags. 

Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
---

 arch/i386/boot/compressed/head.S |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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:
_

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

end of thread, other threads:[~2007-01-03 15:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-03  4:16 [PATCH] i386 kernel instant reboot with older binutils fix Vivek Goyal
2007-01-03  6:44 ` Eric W. Biederman
2007-01-03  6:55   ` Vivek Goyal
2007-01-03  7:50     ` Eric W. Biederman
2007-01-03 13:53 ` Adrian Bunk
2007-01-03 14:18   ` Vivek Goyal
2007-01-03 15:02     ` Segher Boessenkool
2007-01-03 14:18   ` Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox