VirtualBox

Changeset 58636 in vbox for trunk


Ignore:
Timestamp:
Nov 10, 2015 12:54:50 PM (9 years ago)
Author:
vboxsync
Message:

include/iprt/format/elf*: copied from Runtime/include/internal/ldrELF*.

Location:
trunk/include/iprt/formats
Files:
6 copied

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/formats/elf-amd64.h

    r58629 r58636  
    2525 */
    2626
    27 #ifndef ___internal_ldrELFAmd64_h
    28 #define ___internal_ldrELFAmd64_h
     27#ifndef ___iprt_formats_elf_amd64_h
     28#define ___iprt_formats_elf_amd64_h
    2929
    3030/*
  • trunk/include/iprt/formats/elf-common.h

    r58629 r58636  
    2525 */
    2626
    27 #ifndef ___internal_ldrELFCommon_h
    28 #define ___internal_ldrELFCommon_h
     27#ifndef ___iprt_formats_elf_common_h
     28#define ___iprt_formats_elf_common_h
    2929
    3030#include <iprt/stdint.h>
     
    274274
    275275/* Values for n_type.  Used in core files. */
    276 #if defined(RT_OS_FREEBSD)  /* (added by Ramshankar) */
    277 #define NT_PRSTATUS     1       /* Process status. */
    278 #define NT_FPREGSET     2       /* Floating point registers. */
    279 #define NT_PRPSINFO     3       /* Process state info. */
    280 #elif defined(RT_OS_SOLARIS) /* (added by Ramshankar) */
    281 #define NT_PRSTATUS     1       /* prstatus_t <sys/old_procfs.h>        */
    282 #define NT_PRFPREG      2       /* prfpregset_t <sys/old_procfs.h>      */
    283 #define NT_PRPSINFO     3       /* prpsinfo_t <sys/old_procfs.h>        */
    284 #define NT_PRXREG       4       /* prxregset_t <sys/procfs.h> */
    285 #define NT_PLATFORM     5       /* string from sysinfo(SI_PLATFORM)     */
    286 #define NT_AUXV         6       /* auxv_t array <sys/auxv.h> */
    287 #define NT_LDT          9       /* ssd array <sys/sysi86.h> IA32 only */
    288 #define NT_PSTATUS      10      /* pstatus_t <sys/procfs.h> */
    289 #define NT_PSINFO       13      /* psinfo_t     <sys/procfs.h> */
    290 #define NT_PRCRED       14      /* prcred_t     <sys/procfs.h> */
    291 #define NT_UTSNAME      15      /* struct utsname <sys/utsname.h> */
    292 #define NT_LWPSTATUS    16      /* lwpstatus_t  <sys/procfs.h> */
    293 #define NT_LWPSINFO     17      /* lwpsinfo_t <sys/procfs.h> */
    294 #define NT_PRPRIV       18      /* prpriv_t     <sys/procfs.h>  */
    295 #define NT_PRPRIVINFO   19      /* priv_impl_info_t <sys/priv.h> */
    296 #define NT_CONTENT      20      /* core_content_t <sys/corectl.h> */
    297 #define NT_ZONENAME     21      /* string from getzonenamebyid(3C) */
    298 #define PF_SUNW_FAILURE 0x00100000      /* mapping absent due to failure */
    299 #define PN_XNUM         0xffff  /* extended program header index */
    300 #elif defined(RT_OS_LINUX) /* (added by Ramshankar) */
    301 #define NT_PRSTATUS     1   /* Process status. */
    302 #define NT_PRFPREG      2   /* Floating point registers. */
    303 #define NT_PRPSINFO     3   /* Process state info. */
    304 #define NT_TASKSTRUCT   4   /* Task info. */
    305 #define NT_AUXV         6   /* Process auxiliary vectors. */
    306 #define NT_PRXFPREG     0x46e62b7f /* from gdb5.1/include/elf/common.h */
     276#if defined(RT_OS_FREEBSD)
     277# define NT_PRSTATUS    1       /* Process status. */
     278# define NT_FPREGSET    2       /* Floating point registers. */
     279# define NT_PRPSINFO    3       /* Process state info. */
     280#elif defined(RT_OS_SOLARIS)
     281# define NT_PRSTATUS    1       /* prstatus_t <sys/old_procfs.h>        */
     282# define NT_PRFPREG     2       /* prfpregset_t <sys/old_procfs.h>      */
     283# define NT_PRPSINFO    3       /* prpsinfo_t <sys/old_procfs.h>        */
     284# define NT_PRXREG      4       /* prxregset_t <sys/procfs.h> */
     285# define NT_PLATFORM    5       /* string from sysinfo(SI_PLATFORM)     */
     286# define NT_AUXV        6       /* auxv_t array <sys/auxv.h> */
     287# define NT_LDT         9       /* ssd array <sys/sysi86.h> IA32 only */
     288# define NT_PSTATUS     10      /* pstatus_t <sys/procfs.h> */
     289# define NT_PSINFO      13      /* psinfo_t     <sys/procfs.h> */
     290# define NT_PRCRED      14      /* prcred_t     <sys/procfs.h> */
     291# define NT_UTSNAME     15      /* struct utsname <sys/utsname.h> */
     292# define NT_LWPSTATUS   16      /* lwpstatus_t  <sys/procfs.h> */
     293# define NT_LWPSINFO    17      /* lwpsinfo_t <sys/procfs.h> */
     294# define NT_PRPRIV      18      /* prpriv_t     <sys/procfs.h>  */
     295# define NT_PRPRIVINFO  19      /* priv_impl_info_t <sys/priv.h> */
     296# define NT_CONTENT     20      /* core_content_t <sys/corectl.h> */
     297# define NT_ZONENAME    21      /* string from getzonenamebyid(3C) */
     298# define PF_SUNW_FAILURE        0x00100000      /* mapping absent due to failure */
     299# define PN_XNUM                0xffff  /* extended program header index */
     300#elif defined(RT_OS_LINUX)
     301# define NT_PRSTATUS     1   /* Process status. */
     302# define NT_PRFPREG      2   /* Floating point registers. */
     303# define NT_PRPSINFO     3   /* Process state info. */
     304# define NT_TASKSTRUCT   4   /* Task info. */
     305# define NT_AUXV         6   /* Process auxiliary vectors. */
     306# define NT_PRXFPREG     0x46e62b7f /* from gdb5.1/include/elf/common.h */
    307307#endif
    308308
    309309/* VirtualBox specific NOTE sections (added by Ramshankar) */
    310310#ifdef VBOX
    311 #define NT_VBOXCORE 0xb00
    312 #define NT_VBOXCPU  0xb01
     311# define NT_VBOXCORE 0xb00
     312# define NT_VBOXCPU  0xb01
    313313#endif
    314314
     
    335335
    336336#endif
     337
  • trunk/include/iprt/formats/elf-i386.h

    r58629 r58636  
    2525 */
    2626
    27 #ifndef ___internal_ldrELFi386_h
    28 #define ___internal_ldrELFi386_h
     27#ifndef ___iprt_formats_elf_i386_h
     28#define ___iprt_formats_elf_i386_h
    2929
    3030#if 0  /* later */
  • trunk/include/iprt/formats/elf.h

    r58629 r58636  
    2626
    2727
    28 #ifndef ___internal_ldrELF_h
    29 #define ___internal_ldrELF_h
     28#ifndef ___iprt_formats_elf_h
     29#define ___iprt_formats_elf_h
    3030
    3131#if defined(RT_ARCH_AMD64)
    32 # include "ldrELF64.h"
     32# include "elf64.h"
    3333typedef Elf64_Addr          Elf_Addr;
    3434typedef Elf64_Half          Elf_Half;
     
    5555
    5656#elif defined(RT_ARCH_X86)
    57 # include "ldrELF32.h"
     57# include "elf32.h"
    5858typedef Elf32_Addr          Elf_Addr;
    5959typedef Elf32_Half          Elf_Half;
     
    8383#endif
    8484
    85 #endif /* !___internal_ldrELF_h */
     85#endif
    8686
  • trunk/include/iprt/formats/elf32.h

    r58629 r58636  
    2525 */
    2626
    27 #ifndef ___internal_ldrELF32_h
    28 #define ___internal_ldrELF32_h
     27#ifndef ___iprt_formats_elf32_h
     28#define ___iprt_formats_elf32_h
    2929
    3030#include <iprt/assert.h>
    3131
    32 #include "ldrELFCommon.h"
     32#include "elf-common.h"
    3333
    3434/*
     
    185185
    186186
    187 #endif /* !___internal_ldrELF32_h */
     187#endif
    188188
  • trunk/include/iprt/formats/elf64.h

    r58629 r58636  
    2525 */
    2626
    27 #ifndef ___internal_ldrELF64_h
    28 #define ___internal_ldrELF64_h
     27#ifndef ___iprt_formats_elf64_h
     28#define ___iprt_formats_elf64_h
    2929
    30 #include <iprt/assert.h>            /* Added by Ramshankar */
     30#include <iprt/assert.h>
    3131
    32 #include "ldrELFCommon.h"
     32#include "elf-common.h"
    3333
    3434/*
     
    184184
    185185
    186 #endif /* !___internal_ldrELF64_h */
     186#endif
    187187
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette