module.c (e7b3ca08549caccf5d6e1cf066780bf4f0ae77a7) | module.c (6891f8a1135b964f8ef30521d1473d5d137af0fa) |
---|---|
1/* Kernel dynamically loadable module help for PARISC. 2 * 3 * The best reference for this stuff is probably the Processor- 4 * Specific ELF Supplement for PA-RISC: 5 * http://ftp.parisc-linux.org/docs/arch/elf-pa-hp.pdf 6 * 7 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 8 * Copyright (C) 2003 Randolph Chung <tausq at debian . org> --- 32 unchanged lines hidden (view full) --- 41 */ 42 43#include <linux/moduleloader.h> 44#include <linux/elf.h> 45#include <linux/vmalloc.h> 46#include <linux/fs.h> 47#include <linux/string.h> 48#include <linux/kernel.h> | 1/* Kernel dynamically loadable module help for PARISC. 2 * 3 * The best reference for this stuff is probably the Processor- 4 * Specific ELF Supplement for PA-RISC: 5 * http://ftp.parisc-linux.org/docs/arch/elf-pa-hp.pdf 6 * 7 * Linux/PA-RISC Project (http://www.parisc-linux.org/) 8 * Copyright (C) 2003 Randolph Chung <tausq at debian . org> --- 32 unchanged lines hidden (view full) --- 41 */ 42 43#include <linux/moduleloader.h> 44#include <linux/elf.h> 45#include <linux/vmalloc.h> 46#include <linux/fs.h> 47#include <linux/string.h> 48#include <linux/kernel.h> |
49#include <linux/bug.h> |
|
49 50#include <asm/unwind.h> 51 52#if 0 53#define DEBUGP printk 54#else 55#define DEBUGP(fmt...) 56#endif --- 789 unchanged lines hidden (view full) --- 846 *newptr++ = *oldptr; 847 else 848 newptr++; 849 850 } 851 nsyms = newptr - (Elf_Sym *)symhdr->sh_addr; 852 DEBUGP("NEW num_symtab %lu\n", nsyms); 853 symhdr->sh_size = nsyms * sizeof(Elf_Sym); | 50 51#include <asm/unwind.h> 52 53#if 0 54#define DEBUGP printk 55#else 56#define DEBUGP(fmt...) 57#endif --- 789 unchanged lines hidden (view full) --- 847 *newptr++ = *oldptr; 848 else 849 newptr++; 850 851 } 852 nsyms = newptr - (Elf_Sym *)symhdr->sh_addr; 853 DEBUGP("NEW num_symtab %lu\n", nsyms); 854 symhdr->sh_size = nsyms * sizeof(Elf_Sym); |
854 return 0; | 855 return module_bug_finalize(hdr, sechdrs, me); |
855} 856 857void module_arch_cleanup(struct module *mod) 858{ 859 deregister_unwind_table(mod); | 856} 857 858void module_arch_cleanup(struct module *mod) 859{ 860 deregister_unwind_table(mod); |
861 module_bug_cleanup(mod); |
|
860} | 862} |