elfSparc.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* elfSparc.h - Sparc specific Extended Load Format header */
  2. /* Copyright 1984-1996 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01b,03apr96,ism  added EM_ARCH_MACH_ALT
  7. 01a,24Jul95,ism  created
  8. */
  9. /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  10. /*   All Rights Reserved   */
  11. /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
  12. /* The copyright notice above does not evidence any    */
  13. /* actual or intended publication of such source code. */
  14. #ifndef __INCelfSparcsh
  15. #define __INCelfSparcsh
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. #define EM_ARCH_MACHINE EM_SPARC
  20. #ifndef EM_ARCH_MACH_ALT
  21. #define EM_ARCH_MACH_ALT EM_ARCH_MACHINE
  22. #endif
  23. /*
  24.  * Note entry header
  25.  */
  26. typedef struct {
  27. Elf32_Word n_namesz; /* length of note's name */
  28. Elf32_Word n_descsz; /* length of note's "desc" */
  29. Elf32_Word n_type; /* type of note */
  30. } Elf32_Nhdr;
  31. /*
  32.  * Known values for note entry types (e_type == ET_CORE)
  33.  */
  34. #define NT_PRSTATUS 1
  35. #define NT_PRFPREG 2
  36. #define NT_PRPSINFO 3
  37. #define R_SPARC_NONE 0 /* relocation type */
  38. #define R_SPARC_8 1
  39. #define R_SPARC_16 2
  40. #define R_SPARC_32 3
  41. #define R_SPARC_DISP8 4
  42. #define R_SPARC_DISP16 5
  43. #define R_SPARC_DISP32 6
  44. #define R_SPARC_WDISP30 7
  45. #define R_SPARC_WDISP22 8
  46. #define R_SPARC_HI22 9
  47. #define R_SPARC_22 10
  48. #define R_SPARC_13 11
  49. #define R_SPARC_LO10 12
  50. #define R_SPARC_GOT10 13
  51. #define R_SPARC_GOT13 14
  52. #define R_SPARC_GOT22 15
  53. #define R_SPARC_PC10 16
  54. #define R_SPARC_PC22 17
  55. #define R_SPARC_WPLT30 18
  56. #define R_SPARC_COPY 19
  57. #define R_SPARC_GLOB_DAT 20
  58. #define R_SPARC_JMP_SLOT 21
  59. #define R_SPARC_RELATIVE 22
  60. #define R_SPARC_UA32 23
  61. #define R_SPARC_NUM 24 /* must be >last */
  62. #define ELF_SPARC_MAXPGSZ 0x10000 /* maximum page size */
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66. #endif /* __INCelfMips */