Remove spurious CYGNUS LOCAL comments
[deliverable/binutils-gdb.git] / include / elf / common.h
index 8b976cc82185b0bb8b8e394f32cc0b1e93d87250..b116d540be6170c78be3e9d0619db3cac44a79e3 100644 (file)
@@ -1,5 +1,6 @@
 /* ELF support for BFD.
-   Copyright (C) 1991,92,93,94,95,96,97,98,1999 Free Software Foundation, Inc.
+   Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000
+   Free Software Foundation, Inc.
 
    Written by Fred Fish @ Cygnus Support, from information published
    in "UNIX System V Release 4, Programmers Guide: ANSI C and
@@ -57,8 +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 */
 
@@ -140,6 +151,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define EM_SVX         73      /* Silicon Graphics SVx */
 #define EM_ST19        74      /* STMicroelectronics ST19 8-bit microcontroller */
 #define EM_VAX         75      /* Digital VAX */
+#define EM_CRIS               76       /* Axis Communications 32-bit embedded processor */
 
 #define EM_PJ          99       /* picoJava */
 
@@ -187,6 +199,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 */
@@ -311,16 +327,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 */
@@ -430,16 +445,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
    OS specific values.  This is a deliberate special case and we
    maintain it for backwards compatability.  */
 #define DT_VALRNGLO    0x6ffffd00
+#define DT_CHECKSUM    0x6ffffdf8
 #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
 
@@ -464,14 +485,22 @@ 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.  */
+
+/* Values used in DT_FEATURE .dynamic entry.  */
 #define DTF_1_PARINIT  0x00000001
+/* 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. It is a typo. The value
+   defined here is the same as the one in <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
@@ -483,6 +512,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_NODEFLIB  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.024656 seconds and 4 git commands to generate.