kernel_optimize_test/arch
Chaskiel Grundman 69ac59647e [PATCH] alpha: process_reloc_for_got confuses r_offset and r_addend
arch/alpha/kernel/module.c:process_reloc_for_got(), which figures out how big
the .got section for a module should be, appears to be confusing r_offset (the
file offset that the relocation needs to be applied to) with r_addend (the
offset of the relocation's actual target address from the address of the
relocation's symbol).  Because of this, one .got entry is allocated for each
relocation instead of one each unique symbol/addend.

In the module I am working with, this causes the .got section to be almost 10
times larger than it needs to be (75544 bytes instead of 7608 bytes).  As the
.got is accessed with global-pointer-relative instructions, it needs to be
within the 64k gp "zone", and a 75544 byte .got clearly does not fit.  The
result of this is that relocation overflows are detected during module load
and the load is aborted.

Change struct got_entry/process_reloc_for_got to fix this.

Acked-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-09 13:57:30 -07:00
..
alpha [PATCH] alpha: process_reloc_for_got confuses r_offset and r_addend 2005-09-09 13:57:30 -07:00
arm Merge master.kernel.org:/home/rmk/linux-2.6-serial 2005-09-08 15:30:14 -07:00
arm26 [PATCH] Kconfig fix (BLK_DEV_FD dependencies) 2005-09-07 17:17:12 -07:00
cris [PATCH] NTP: ntp-helper functions 2005-09-07 16:57:34 -07:00
frv [PATCH] NTP: ntp-helper functions 2005-09-07 16:57:34 -07:00
h8300 [PATCH] NTP: ntp-helper functions 2005-09-07 16:57:34 -07:00
i386 [PATCH] i386: seccomp fix for auditing/ptrace 2005-09-09 13:57:30 -07:00
ia64 [IA64] Manual merge fix for 3 files 2005-09-08 14:27:13 -07:00
m32r [PATCH] NTP: ntp-helper functions 2005-09-07 16:57:34 -07:00
m68k [PATCH] Kconfig fix (BLK_DEV_FD dependencies) 2005-09-07 17:17:12 -07:00
m68knommu [PATCH] m68knommu: extract common timer code for 68EZ328 processor 2005-09-08 17:27:37 -07:00
mips [PATCH] mips: add TANBAC TB0287 support 2005-09-09 13:57:30 -07:00
parisc [PATCH] Kconfig fix (BLK_DEV_FD dependencies) 2005-09-07 17:17:12 -07:00
ppc [PATCH] ppc32: Kill PVR_440* defines 2005-09-09 13:57:29 -07:00
ppc64 Merge master.kernel.org:/pub/scm/linux/kernel/git/paulus/ppc64-2.6 2005-09-09 10:38:02 -07:00
s390 [PATCH] missing CHECKFLAGS on s390 2005-09-09 10:31:58 -07:00
sh [PATCH] Kconfig fix (BLK_DEV_FD dependencies) 2005-09-07 17:17:12 -07:00
sh64 [PATCH] NTP: ntp-helper functions 2005-09-07 16:57:34 -07:00
sparc [PATCH] Kconfig fix (BLK_DEV_FD dependencies) 2005-09-07 17:17:12 -07:00
sparc64 Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6 2005-09-08 15:55:23 -07:00
um [PATCH] uaccess.h annotations (uml) 2005-09-09 10:31:58 -07:00
v850 [PATCH] NTP: ntp-helper functions 2005-09-07 16:57:34 -07:00
x86_64 [PATCH] x86_64: Don't call enforce_max_cpus when hotplug is enabled 2005-09-09 13:57:30 -07:00
xtensa [PATCH] NTP: ntp-helper functions 2005-09-07 16:57:34 -07:00