Skip to content

Commit

Permalink
[PATCH] Fix insta-reboot with "i386: Relocatable kernel support"
Browse files Browse the repository at this point in the history
Commit 968de4f ("i386: Relocatable
kernel support") caused problems for people with old binutils versions
that didn't mark ".text.*" sections automatically allocated.

So we should use .section command to specifically mark .text.head
section as AX (allocatable and executable) to solve the problem.

This should be unnecessary with binutils 2.15 and later, which is
already three years old, but it doesn't hurt supporting older toolchains
where possible.

Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Segher Boessenkool authored and Linus Torvalds committed Jan 2, 2007
1 parent 9883a13 commit c6b33cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/i386/boot/compressed/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c6b33cc

Please sign in to comment.