module.h (f43dc23d5ea91fca257be02138a255f02d98e806) | module.h (786d35d45cc40b2a51a18f73e14e135d47fdced7) |
---|---|
1#ifndef _ASM_POWERPC_MODULE_H 2#define _ASM_POWERPC_MODULE_H 3#ifdef __KERNEL__ 4 5/* 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 9 * 2 of the License, or (at your option) any later version. 10 */ 11 12#include <linux/list.h> 13#include <asm/bug.h> | 1#ifndef _ASM_POWERPC_MODULE_H 2#define _ASM_POWERPC_MODULE_H 3#ifdef __KERNEL__ 4 5/* 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 9 * 2 of the License, or (at your option) any later version. 10 */ 11 12#include <linux/list.h> 13#include <asm/bug.h> |
14#include <asm-generic/module.h> |
|
14 15 16#ifndef __powerpc64__ 17/* 18 * Thanks to Paul M for explaining this. 19 * 20 * PPC can only do rel jumps += 32MB, and often the kernel and other 21 * modules are furthur away than this. So, we jump to a table of --- 33 unchanged lines hidden (view full) --- 55}; 56 57/* 58 * Select ELF headers. 59 * Make empty section for module_frob_arch_sections to expand. 60 */ 61 62#ifdef __powerpc64__ | 15 16 17#ifndef __powerpc64__ 18/* 19 * Thanks to Paul M for explaining this. 20 * 21 * PPC can only do rel jumps += 32MB, and often the kernel and other 22 * modules are furthur away than this. So, we jump to a table of --- 33 unchanged lines hidden (view full) --- 56}; 57 58/* 59 * Select ELF headers. 60 * Make empty section for module_frob_arch_sections to expand. 61 */ 62 63#ifdef __powerpc64__ |
63# define Elf_Shdr Elf64_Shdr 64# define Elf_Sym Elf64_Sym 65# define Elf_Ehdr Elf64_Ehdr | |
66# ifdef MODULE 67 asm(".section .stubs,\"ax\",@nobits; .align 3; .previous"); 68# endif 69#else | 64# ifdef MODULE 65 asm(".section .stubs,\"ax\",@nobits; .align 3; .previous"); 66# endif 67#else |
70# define Elf_Shdr Elf32_Shdr 71# define Elf_Sym Elf32_Sym 72# define Elf_Ehdr Elf32_Ehdr | |
73# ifdef MODULE 74 asm(".section .plt,\"ax\",@nobits; .align 3; .previous"); 75 asm(".section .init.plt,\"ax\",@nobits; .align 3; .previous"); 76# endif /* MODULE */ 77#endif 78 79#ifdef CONFIG_DYNAMIC_FTRACE 80# ifdef MODULE --- 16 unchanged lines hidden --- | 68# ifdef MODULE 69 asm(".section .plt,\"ax\",@nobits; .align 3; .previous"); 70 asm(".section .init.plt,\"ax\",@nobits; .align 3; .previous"); 71# endif /* MODULE */ 72#endif 73 74#ifdef CONFIG_DYNAMIC_FTRACE 75# ifdef MODULE --- 16 unchanged lines hidden --- |