OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-i386/] [elf.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef __ASMi386_ELF_H
2
#define __ASMi386_ELF_H
3
 
4
/*
5
 * ELF register definitions..
6
 */
7
 
8
#include <asm/ptrace.h>
9
 
10
typedef unsigned long elf_greg_t;
11
 
12
#define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t))
13
typedef elf_greg_t elf_gregset_t[ELF_NGREG];
14
 
15
typedef struct user_i387_struct elf_fpregset_t;
16
 
17
/*
18
 * This is used to ensure we don't load something for the wrong architecture.
19
 */
20
#define elf_check_arch(x) ( ((x) == EM_386) || ((x) == EM_486) )
21
 
22
/*
23
 * These are used to set parameters in the core dumps.
24
 */
25
#define ELF_CLASS       ELFCLASS32
26
#define ELF_DATA        ELFDATA2LSB;
27
#define ELF_ARCH        EM_386
28
 
29
        /* SVR4/i386 ABI (pages 3-31, 3-32) says that when the program
30
           starts %edx contains a pointer to a function which might be
31
           registered using `atexit'.  This provides a mean for the
32
           dynamic linker to call DT_FINI functions for shared libraries
33
           that have been loaded before the code runs.
34
 
35
           A value of 0 tells we have no such handler.  */
36
#define ELF_PLAT_INIT(_r)       _r->edx = 0
37
 
38
#define USE_ELF_CORE_DUMP
39
#define ELF_EXEC_PAGESIZE       4096
40
 
41
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.