Skip to content
Commit f749edae authored by Alan Modra's avatar Alan Modra Committed by Paul Mackerras
Browse files

[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: default avatarPaul Mackerras <paulus@samba.org>
parent d882995c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment