exec.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /* $OpenBSD: exec.h,v 1.17 2013/10/17 08:02:17 deraadt Exp $ */
  2. /* $NetBSD: exec.h,v 1.7 1994/11/20 20:53:02 deraadt Exp $ */
  3. /*
  4. * Copyright (c) 1993 Christopher G. Demetriou
  5. * All rights reserved.
  6. *
  7. * Redistribution and use in source and binary forms, with or without
  8. * modification, are permitted provided that the following conditions
  9. * are met:
  10. * 1. Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * 2. Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in the
  14. * documentation and/or other materials provided with the distribution.
  15. * 3. The name of the author may not be used to endorse or promote products
  16. * derived from this software without specific prior written permission
  17. *
  18. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  19. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  20. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  21. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  22. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  23. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  24. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  25. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  27. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  28. */
  29. #ifndef _MACHINE_EXEC_H_
  30. #define _MACHINE_EXEC_H_
  31. #define __LDPGSZ 8192 /* linker page size */
  32. #define R_SPARC_NONE 0
  33. #define R_SPARC_8 1
  34. #define R_SPARC_16 2
  35. #define R_SPARC_32 3
  36. #define R_SPARC_DISP8 4
  37. #define R_SPARC_DISP16 5
  38. #define R_SPARC_DISP32 6
  39. #define R_SPARC_WDISP30 7
  40. #define R_SPARC_WDISP22 8
  41. #define R_SPARC_HI22 9
  42. #define R_SPARC_22 10
  43. #define R_SPARC_13 11
  44. #define R_SPARC_LO10 12
  45. #define R_SPARC_GOT10 13
  46. #define R_SPARC_GOT13 14
  47. #define R_SPARC_GOT22 15
  48. #define R_SPARC_PC10 16
  49. #define R_SPARC_PC22 17
  50. #define R_SPARC_WPLT30 18
  51. #define R_SPARC_COPY 19
  52. #define R_SPARC_GLOB_DAT 20
  53. #define R_SPARC_JMP_SLOT 21
  54. #define R_SPARC_RELATIVE 22
  55. #define R_SPARC_UA32 23
  56. #define R_SPARC_PLT32 24
  57. #define R_SPARC_HIPLT22 25
  58. #define R_SPARC_LOPLT10 26
  59. #define R_SPARC_PCPLT32 27
  60. #define R_SPARC_PCPLT22 28
  61. #define R_SPARC_PCPLT10 29
  62. #define R_SPARC_10 30
  63. #define R_SPARC_11 31
  64. #define R_SPARC_64 32
  65. #define R_SPARC_OLO10 33
  66. #define R_SPARC_HH22 34
  67. #define R_SPARC_HM10 35
  68. #define R_SPARC_LM22 36
  69. #define R_SPARC_PC_HH22 37
  70. #define R_SPARC_PC_HM10 38
  71. #define R_SPARC_PC_LM22 39
  72. #define R_SPARC_WDISP16 40
  73. #define R_SPARC_WDISP19 41
  74. #define R_SPARC_GLOB_JMP 42
  75. #define R_SPARC_7 43
  76. #define R_SPARC_5 44
  77. #define R_SPARC_6 45
  78. #define R_SPARC_TLS_DTPMOD32 74
  79. #define R_SPARC_TLS_DTPMOD64 75
  80. #define R_SPARC_TLS_DTPOFF32 76
  81. #define R_SPARC_TLS_DTPOFF64 77
  82. #define R_SPARC_TLS_TPOFF32 78
  83. #define R_SPARC_TLS_TPOFF64 79
  84. #define R_TYPE(name) __CONCAT(R_SPARC_,name)
  85. #define ARCH_ELFSIZE 32
  86. #define ELF_TARG_CLASS ELFCLASS32
  87. #define ELF_TARG_DATA ELFDATA2MSB
  88. #define ELF_TARG_MACH EM_SPARC
  89. #define _NLIST_DO_ELF
  90. #define _KERN_DO_ELF
  91. #endif /* _MACHINE_EXEC_H_ */