linux/arch/score/include/asm
David Howells 786d35d45c Make most arch asm/module.h files use asm-generic/module.h
Use the mapping of Elf_[SPE]hdr, Elf_Addr, Elf_Sym, Elf_Dyn, Elf_Rel/Rela,
ELF_R_TYPE() and ELF_R_SYM() to either the 32-bit version or the 64-bit version
into asm-generic/module.h for all arches bar MIPS.

Also, use the generic definition mod_arch_specific where possible.

To this end, I've defined three new config bools:

 (*) HAVE_MOD_ARCH_SPECIFIC

     Arches define this if they don't want to use the empty generic
     mod_arch_specific struct.

 (*) MODULES_USE_ELF_RELA

     Arches define this if their modules can contain RELA records.  This causes
     the Elf_Rela mapping to be emitted and allows apply_relocate_add() to be
     defined by the arch rather than have the core emit an error message.

 (*) MODULES_USE_ELF_REL

     Arches define this if their modules can contain REL records.  This causes
     the Elf_Rel mapping to be emitted and allows apply_relocate() to be
     defined by the arch rather than have the core emit an error message.

Note that it is possible to allow both REL and RELA records: m68k and mips are
two arches that do this.

With this, some arch asm/module.h files can be deleted entirely and replaced
with a generic-y marker in the arch Kbuild file.

Additionally, I have removed the bits from m32r and score that handle the
unsupported type of relocation record as that's now handled centrally.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-09-28 14:31:03 +09:30
..
asm-offsets.h score: add asm/asm-offsets.h wrapper 2009-12-12 13:08:16 +01:00
asmmacro.h
atomic.h Disintegrate asm/system.h for Score 2012-03-28 18:30:02 +01:00
auxvec.h
barrier.h Disintegrate asm/system.h for Score 2012-03-28 18:30:02 +01:00
bitops.h Disintegrate asm/system.h for Score 2012-03-28 18:30:02 +01:00
bitsperlong.h
bug.h Disintegrate asm/system.h for Score 2012-03-28 18:30:02 +01:00
bugs.h
byteorder.h
cache.h
cacheflush.h score: add flush_dcahce_page and PG_dcache_dirty define 2009-12-17 18:28:31 +08:00
checksum.h
cmpxchg.h Disintegrate asm/system.h for Score 2012-03-28 18:30:02 +01:00
cputime.h
current.h
delay.h score: include asm-generic/param.h in asm/delay.h. 2009-12-17 18:31:23 +08:00
device.h
div64.h
dma-mapping.h
dma.h
elf.h elf: kill USE_ELF_CORE_DUMP 2009-12-16 07:20:12 -08:00
emergency-restart.h
errno.h
exec.h Disintegrate asm/system.h for Score 2012-03-28 18:30:02 +01:00
fcntl.h
fixmap.h
ftrace.h
futex.h
hardirq.h
hw_irq.h
io.h
ioctl.h
ioctls.h
ipcbuf.h
irq_regs.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00
irq.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00
irqflags.h score: lost a semicolon in asm/irqflags.h 2011-03-28 12:02:20 +08:00
Kbuild
kdebug.h
kmap_types.h
kvm_para.h kvmclock: Add functions to check if the host has stopped the vm 2012-04-08 12:48:59 +03:00
linkage.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00
local64.h arch: Implement local64_t 2010-06-09 11:12:36 +02:00
local.h
mman.h
mmu_context.h
mmu.h
module.h Make most arch asm/module.h files use asm-generic/module.h 2012-09-28 14:31:03 +09:30
msgbuf.h
mutex.h
page.h score: fixed pfn_valid define. 2009-12-17 18:28:31 +08:00
param.h
pci.h
percpu.h
pgalloc.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00
pgtable-bits.h
pgtable.h mm: remove pte_*map_nested() 2010-10-26 16:52:08 -07:00
poll.h
posix_types.h
processor.h fork: move the real prepare_to_copy() users to arch_dup_task_struct() 2012-05-16 15:16:26 -07:00
ptrace.h ptrace: move user_enable_single_step & co prototypes to linux/ptrace.h 2010-03-12 15:52:38 -08:00
resource.h
scatterlist.h remove needless ISA_DMA_THRESHOLD 2010-08-07 18:15:50 +02:00
scoreregs.h
sections.h
segment.h
sembuf.h
setup.h score: add MEMORY_START and MEMORY_SIZE define, to make the code clear 2009-08-30 12:31:58 +08:00
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
socket.h
sockios.h
stat.h
statfs.h
string.h
swab.h
switch_to.h Disintegrate asm/system.h for Score 2012-03-28 18:30:02 +01:00
syscalls.h score: add prototypes for wrapped syscalls 2009-06-19 14:10:46 +02:00
termbits.h
termios.h
thread_info.h score: Use common threadinfo allocator 2012-05-08 14:08:46 +02:00
timex.h
tlb.h
tlbflush.h
topology.h
types.h
uaccess.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00
ucontext.h score: add missing #includes 2009-06-27 15:09:46 +02:00
unaligned.h
unistd.h score: add old syscall support 2009-08-30 12:33:30 +08:00
user.h score: update inconsistent declare after .c was changed 2009-08-30 12:30:16 +08:00