diff options
author | Alan Modra <amodra@bigpond.net.au> | 2006-04-24 14:41:51 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-04-28 13:04:49 +0200 |
commit | f749edae5ebd339eaf22508572233600f717424f (patch) | |
tree | f2118ec27b0682ae9bb3d6c0605d7ccd08313a71 /include/asm-powerpc/thread_info.h | |
parent | [PATCH] sound/ppc: snd_pmac_toonie_init should be __init (diff) | |
download | linux-f749edae5ebd339eaf22508572233600f717424f.tar.xz linux-f749edae5ebd339eaf22508572233600f717424f.zip |
[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>
Diffstat (limited to 'include/asm-powerpc/thread_info.h')
0 files changed, 0 insertions, 0 deletions