mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 14:21:47 +00:00
698ba7b5a3
Currently all architectures but microblaze unconditionally define USE_ELF_CORE_DUMP. The microblaze omission seems like an error to me, so let's kill this ifdef and make sure we are the same everywhere. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Hugh Dickins <hugh.dickins@tiscali.co.uk> Cc: <linux-arch@vger.kernel.org> Cc: Michal Simek <michal.simek@petalogix.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
52 lines
1.0 KiB
C
52 lines
1.0 KiB
C
#ifndef __UM_ELF_PPC_H
|
|
#define __UM_ELF_PPC_H
|
|
|
|
|
|
extern long elf_aux_hwcap;
|
|
#define ELF_HWCAP (elf_aux_hwcap)
|
|
|
|
#define SET_PERSONALITY(ex) do ; while(0)
|
|
|
|
#define ELF_EXEC_PAGESIZE 4096
|
|
|
|
#define elf_check_arch(x) (1)
|
|
|
|
#ifdef CONFIG_64BIT
|
|
#define ELF_CLASS ELFCLASS64
|
|
#else
|
|
#define ELF_CLASS ELFCLASS32
|
|
#endif
|
|
|
|
#define R_386_NONE 0
|
|
#define R_386_32 1
|
|
#define R_386_PC32 2
|
|
#define R_386_GOT32 3
|
|
#define R_386_PLT32 4
|
|
#define R_386_COPY 5
|
|
#define R_386_GLOB_DAT 6
|
|
#define R_386_JMP_SLOT 7
|
|
#define R_386_RELATIVE 8
|
|
#define R_386_GOTOFF 9
|
|
#define R_386_GOTPC 10
|
|
#define R_386_NUM 11
|
|
|
|
#define ELF_PLATFORM (0)
|
|
|
|
#define ELF_ET_DYN_BASE (0x08000000)
|
|
|
|
/* the following stolen from asm-ppc/elf.h */
|
|
#define ELF_NGREG 48 /* includes nip, msr, lr, etc. */
|
|
#define ELF_NFPREG 33 /* includes fpscr */
|
|
/* General registers */
|
|
typedef unsigned long elf_greg_t;
|
|
typedef elf_greg_t elf_gregset_t[ELF_NGREG];
|
|
|
|
/* Floating point registers */
|
|
typedef double elf_fpreg_t;
|
|
typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
|
|
|
|
#define ELF_DATA ELFDATA2MSB
|
|
#define ELF_ARCH EM_PPC
|
|
|
|
#endif
|