Commit graph android_kernel_sony_sdm845/arch/powerpc/kernel/module_64.c
Message SHA1
[PATCH] powerpc64: Fix loading of modules without a .toc section
Normally, ppc64 module .ko files contain a table-of-contents (.toc)
section, but if the module doesn't reference any static or external
data or external procedures, it is possible for gcc/binutils to
generate a .ko that doesn't have a .toc.  Currently the module
loader refuses to load such a module, since it needs the address
of the .toc section to use in relocations.

This patch fixes the problem by using the address of the .stubs
section instead, which is an acceptable substitute in this situation.

Signed-off-by: Paul Mackerras <paulus@samba.org>

Alan Modra   authored and   Paul Mackerras   commited 2006-04-28 21:04:49 +10:00
f749edae5e
powerpc: Move most remaining ppc64 files over to arch/powerpc
Also deletes files in arch/ppc64 that are no longer used now that
we don't compile with ARCH=ppc64 any more.

Signed-off-by: Paul Mackerras <paulus@samba.org>

Paul Mackerras   commited 2005-11-14 17:30:17 +11:00
7568cb4ef6
Renamed from arch/ppc64/kernel/module.c (Browse further)