diff options
author | Jonas Bonn <jonas@southpole.se> | 2011-06-30 21:22:11 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-07-24 22:06:04 +0930 |
commit | 74e08fcf7bef973512a1f813700f802a93678670 (patch) | |
tree | 467868e281ee7768c0124009340c0a5a1850de98 /include/linux/moduleloader.h | |
parent | 81c7413650fbbf881bcb9e567be61a6717eb1876 (diff) | |
download | linux-74e08fcf7bef973512a1f813700f802a93678670.tar.gz linux-74e08fcf7bef973512a1f813700f802a93678670.tar.bz2 linux-74e08fcf7bef973512a1f813700f802a93678670.zip |
modules: add default loader hook implementations
The module loader code allows architectures to hook into the code by
providing a small number of entry points that each arch must implement.
This patch provides __weakly linked generic implementations of these
entry points for architectures that don't need to do anything special.
Signed-off-by: Jonas Bonn <jonas@southpole.se>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/moduleloader.h')
-rw-r--r-- | include/linux/moduleloader.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/moduleloader.h b/include/linux/moduleloader.h index c1f40c2f7ffb..b2be02ebf453 100644 --- a/include/linux/moduleloader.h +++ b/include/linux/moduleloader.h @@ -5,7 +5,12 @@ #include <linux/module.h> #include <linux/elf.h> -/* These must be implemented by the specific architecture */ +/* These may be implemented by architectures that need to hook into the + * module loader code. Architectures that don't need to do anything special + * can just rely on the 'weak' default hooks defined in kernel/module.c. + * Note, however, that at least one of apply_relocate or apply_relocate_add + * must be implemented by each architecture. + */ /* Adjust arch-specific sections. Return 0 on success. */ int module_frob_arch_sections(Elf_Ehdr *hdr, |