Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_PPC64_MODULE_H |
| 2 | #define _ASM_PPC64_MODULE_H |
| 3 | |
| 4 | #include <linux/list.h> |
| 5 | #include <asm/bug.h> |
| 6 | |
| 7 | struct mod_arch_specific |
| 8 | { |
| 9 | /* Index of stubs section within module. */ |
| 10 | unsigned int stubs_section; |
| 11 | |
| 12 | /* What section is the TOC? */ |
| 13 | unsigned int toc_section; |
| 14 | |
| 15 | /* List of BUG addresses, source line numbers and filenames */ |
| 16 | struct list_head bug_list; |
| 17 | struct bug_entry *bug_table; |
| 18 | unsigned int num_bugs; |
| 19 | }; |
| 20 | |
| 21 | extern struct bug_entry *module_find_bug(unsigned long bugaddr); |
| 22 | |
| 23 | #define Elf_Shdr Elf64_Shdr |
| 24 | #define Elf_Sym Elf64_Sym |
| 25 | #define Elf_Ehdr Elf64_Ehdr |
| 26 | |
| 27 | /* Make empty section for module_frob_arch_sections to expand. */ |
| 28 | #ifdef MODULE |
| 29 | asm(".section .stubs,\"ax\",@nobits; .align 3; .previous"); |
| 30 | #endif |
| 31 | |
| 32 | struct exception_table_entry; |
| 33 | void sort_ex_table(struct exception_table_entry *start, |
| 34 | struct exception_table_entry *finish); |
| 35 | |
| 36 | #endif /* _ASM_PPC64_MODULE_H */ |