kernel-fxtec-pro1x/arch/x86/boot
Tejun Heo 46176b4f6b x86, relocs: ignore R_386_NONE in kernel relocation entries
For relocatable 32bit kernels, boot/compressed/relocs.c processes
relocation entries in the kernel image and appends it to the kernel
image such that boot/compressed/head_32.S can relocate the kernel.
The kernel image is one statically linked object and only uses two
relocation types - R_386_PC32 and R_386_32, of the two only the latter
needs massaging during kernel relocation and thus handled by relocs.
R_386_PC32 is ignored and all other relocation types are considered
error.

When the target of a relocation resides in a discarded section,
binutils doesn't throw away the relocation record but nullifies it by
changing it to R_386_NONE, which unfortunately makes relocs fail.

The problem was triggered by yet out-of-tree x86 stack unwind patches
but given the binutils behavior, ignoring R_386_NONE is the right
thing to do.

The problem has been tracked down to binutils behavior by Jan Beulich.

[ Impact: fix build with certain binutils by ignoring R_386_NONE ]

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jan Beulich <JBeulich@novell.com>
Cc: Ingo Molnar <mingo@elte.hu>
LKML-Reference: <4A1B8150.40702@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-05-25 22:52:49 -07:00
..
compressed x86, relocs: ignore R_386_NONE in kernel relocation entries 2009-05-25 22:52:49 -07:00
tools x86: remove zImage support 2009-03-11 11:00:00 -07:00
.gitignore
a20.c x86: remove the Voyager 32-bit subarch 2009-02-23 00:54:01 +01:00
apm.c
bitops.h
boot.h x86: remove the Voyager 32-bit subarch 2009-02-23 00:54:01 +01:00
cmdline.c
code16gcc.h
copy.S x86: copy.S - use GLOBAL,ENDPROC macros 2009-02-19 17:13:00 +01:00
cpu.c
cpucheck.c
edd.c Revert "x86: fix ghost EDD devices in /sys again" 2008-10-03 10:22:33 -07:00
header.S x86: remove zImage support 2009-03-11 11:00:00 -07:00
install.sh
main.c x86: remove the Voyager 32-bit subarch 2009-02-23 00:54:01 +01:00
Makefile x86, setup: compile with -DDISABLE_BRANCH_PROFILING 2009-04-03 16:34:45 +02:00
mca.c
memory.c x86, setup: revert ACPI 3 E820 extended attributes support 2009-05-22 11:14:02 -07:00
mkcpustr.c
mtools.conf.in
pm.c x86: remove zImage support 2009-03-11 11:00:00 -07:00
pmjump.S x86, setup: move 32-bit code to .text32 2009-03-17 15:26:06 -07:00
printf.c
setup.ld x86, setup: move 32-bit code to .text32 2009-03-17 15:26:06 -07:00
string.c
tty.c x86: use limited register constraint for setnz 2008-11-25 15:38:03 +01:00
version.c
vesa.h
video-bios.c x86: make variables static 2008-10-22 07:31:28 +02:00
video-mode.c
video-vesa.c x86 setup: fix asm constraints in vesa_store_edid 2009-01-30 23:55:25 +01:00
video-vga.c x86, setup: un-resequence mode setting for VGA 80x34 and 80x60 modes 2009-04-07 10:59:25 -07:00
video.c x86: boot - fix sparse warnings 2008-11-23 19:58:58 +01:00
video.h