提交 c6b33cc4 编写于 作者: S Segher Boessenkool 提交者: Linus Torvalds

[PATCH] Fix insta-reboot with "i386: Relocatable kernel support"

Commit 968de4f0 ("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: NVivek Goyal <vgoyal@in.ibm.com>
Acked-by: NJean Delvare <khali@linux-fr.org>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 9883a13c
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册