]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fix insta-reboot with "i386: Relocatable kernel support"
authorSegher Boessenkool <segher@kernel.crashing.org>
Tue, 2 Jan 2007 06:11:47 +0000 (11:41 +0530)
committerLinus Torvalds <torvalds@woody.osdl.org>
Tue, 2 Jan 2007 21:44:11 +0000 (13:44 -0800)
commit1c88f642320e213577b97fd74d72b1ccbeff9a86
tree4fa980f94f7e1b070cda49f92d3d360976ea8234
parent8252a1e9fdcce99fd8ecc0818f4a0e105074ca7e
[PATCH] Fix insta-reboot with "i386: Relocatable kernel support"

Commit d3eb7a6e3680c6cedb9ffe9daaf51a76c754c928 ("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>
arch/i386/boot/compressed/head.S