/* * In gdb/bfd elf32-csky.c, csky_elf_grok_prstatus() use fixed size of * elf_prstatus. It's 148 for abiv1 and 220 for abiv2, the size is enough * for coredump and no need full sizeof(struct pt_regs).
*/ #define ELF_NGREG ((sizeof(struct pt_regs) / sizeof(elf_greg_t)) - 2)
typedef elf_greg_t elf_gregset_t[ELF_NGREG];
/* * This is used to ensure we don't load something for the wrong architecture.
*/ #define elf_check_arch(x) (((x)->e_machine == ELF_ARCH) || \
((x)->e_machine == EM_CSKY_OLD))
/* * These are used to set parameters in the core dumps.
*/ #define ELF_EXEC_PAGESIZE 4096 #define ELF_CLASS ELFCLASS32 #define ELF_PLAT_INIT(_r, load_addr) { _r->a0 = 0; }
/* * This is the location that an ET_DYN program is loaded if exec'ed. Typical * use of this is to invoke "./ld.so someprog" to test out a new version of * the loader. We need to make sure that it is out of the way of the program * that it will "exec", and that there is sufficient room for the brk.
*/ #define ELF_ET_DYN_BASE 0x0UL #include <abi/elf.h>
/* Similar, but for a thread other than current. */ struct task_struct; externint dump_task_regs(struct task_struct *tsk, elf_gregset_t *elf_regs); #define ELF_CORE_COPY_TASK_REGS(tsk, elf_regs) dump_task_regs(tsk, elf_regs)
#define ELF_HWCAP (0)
/* * This yields a string that ld.so will use to load implementation specific * libraries for optimization. This is more specific in intent than poking * at uname or /proc/cpuinfo.
*/ #define ELF_PLATFORM (NULL) #define SET_PERSONALITY(ex) set_personality(PER_LINUX)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.