2000-07-19 H.J. Lu <hjl@gnu.org>
[deliverable/binutils-gdb.git] / include / elf / common.h
index 74fd7b22d4d811b8e9beb846f50a142c4aa2a81b..c41b7e6252007fe74bef2d1bd920993a805040a4 100644 (file)
@@ -58,9 +58,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define EI_VERSION     6       /* File version */
 
 #define EI_OSABI        7       /* Operating System/ABI indication */
-#define ELFOSABI_SYSV   0       /* UNIX System V ABI */
+#define ELFOSABI_NONE   0       /* UNIX System V ABI */
 #define ELFOSABI_HPUX   1       /* HP-UX operating system */
+#define ELFOSABI_NETBSD 2       /* NetBSD */
 #define ELFOSABI_LINUX  3       /* GNU/Linux */
+#define ELFOSABI_HURD   4       /* GNU/Hurd */
+#define ELFOSABI_SOLARIS 6      /* Solaris */
+#define ELFOSABI_MONTEREY 7     /* Monterey */
+#define ELFOSABI_IRIX   8       /* IRIX */
+#define ELFOSABI_FREEBSD 9      /* FreeBSD */
+#define ELFOSABI_TRU64  10      /* TRU64 UNIX */
+#define ELFOSABI_MODESTO 11     /* Novell Modesto */
+#define ELFOSABI_OPENBSD 12     /* OpenBSD */
 #define ELFOSABI_STANDALONE 255 /* Standalone (embedded) application */
 #define ELFOSABI_ARM   97              /* ARM */
 
@@ -189,6 +198,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 /* FR30 magic number - no EABI available.  */
 #define EM_CYGNUS_FR30         0x3330
 
+/* AVR magic number
+   Written in the absense of an ABI.  */
+#define EM_AVR                 0x1057
+
 /* See the above comment before you add a new EM_* value here.  */
 
 /* Values for e_version */
@@ -313,16 +326,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define ELF64_ST_TYPE  ELF_ST_TYPE
 #define ELF64_ST_INFO  ELF_ST_INFO
 
-/* These two macros disassemble and assemble a symbol's visibility into
+/* This macro disassembles and assembles a symbol's visibility into
    the st_other field.  The STV_ defines specificy the actual visibility.  */
 
 #define ELF_ST_VISIBILITY(v)           ((v) & 0x3)
-#define ELF_ST_OTHER(o)                        ((o) & ~0x3)
+/* The remaining bits in the st_other field are not currently used.
+   They should be set to zero.  */
 
 #define ELF32_ST_VISIBILITY  ELF_ST_VISIBILITY
-#define ELF32_ST_OTHER       ELF_ST_OTHER
 #define ELF64_ST_VISIBILITY  ELF_ST_VISIBILITY
-#define ELF64_ST_OTHER       ELF_ST_OTHER
 
 
 #define STN_UNDEF      0               /* undefined symbol index */
@@ -435,13 +447,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define DT_PLTPADSZ    0x6ffffdf9
 #define DT_MOVEENT     0x6ffffdfa
 #define DT_MOVESZ      0x6ffffdfb
-#define DT_FEATURE_1   0x6ffffdfc
+#define DT_FEATURE     0x6ffffdfc
 #define DT_POSFLAG_1   0x6ffffdfd
 #define DT_SYMINSZ     0x6ffffdfe
 #define DT_SYMINENT    0x6ffffdff
 #define DT_VALRNGHI    0x6ffffdff
 
 #define DT_ADDRRNGLO   0x6ffffe00
+#define DT_CONFIG      0x6ffffefa
+#define DT_DEPAUDIT    0x6ffffefb
+#define DT_AUDIT       0x6ffffefc
+#define DT_PLTPAD      0x6ffffefd
+#define DT_MOVETAB     0x6ffffefe
 #define DT_SYMINFO     0x6ffffeff
 #define DT_ADDRRNGHI   0x6ffffeff
 
@@ -466,14 +483,30 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define DT_USED                0x7ffffffe
 #define DT_FILTER      0x7fffffff
 
-/* Values used in DT_FEATURE_1 .dynamic entry.  */
+/* FIXME: From
+
+   http://docs.sun.com:80/ab2/coll.45.13/LLM/@Ab2PageView/21165?Ab2Lang=C&Ab2Enc=iso-8859-1
+
+   DT_CHECKSUM is mentioned. But it is not in the table. Someone should
+   check <sys/link.h> on Solaris 8. */
+#define DT_CHECKSUM    0
+
+
+/* Values used in DT_FEATURE .dynamic entry.  */
 #define DTF_1_PARINIT  0x00000001
+/* FIXME: From
+
+   http://docs.sun.com:80/ab2/coll.45.13/LLM/@Ab2PageView/21165?Ab2Lang=C&Ab2Enc=iso-8859-1
+
+   DTF_1_CONFEXP is the same as DTF_1_PARINIT. I think it is a typo.
+   Someone should check <sys/link.h> on Solaris 8. */
+#define DTF_1_CONFEXP  0x00000002
 
 /* Flag values used in the DT_POSFLAG_1 .dynamic entry.  */
 #define DF_P1_LAZYLOAD 0x00000001
 #define DF_P1_GROUPPERM        0x00000002
 
-/* Flag value in in the DT_1_FLAGS .dynamic entry.  */
+/* Flag value in in the DT_FLAGS_1 .dynamic entry.  */
 #define DF_1_NOW       0x00000001
 #define DF_1_GLOBAL    0x00000002
 #define DF_1_GROUP     0x00000004
@@ -485,6 +518,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define DF_1_DIRECT    0x00000100
 #define DF_1_TRANS     0x00000200
 #define DF_1_INTERPOSE 0x00000400
+#define DF_1_NODEPLIB  0x00000800
+#define DF_1_NODUMP    0x00001000
+#define DF_1_CONLFAT   0x00002000
 
 /* Flag values for the DT_FLAGS entry.  */
 #define DF_ORIGIN      (1 << 0)
This page took 0.038055 seconds and 4 git commands to generate.