* elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
[deliverable/binutils-gdb.git] / include / elf / common.h
index 36a0b4dd81b3e0e7f861b93dc722dda3e71fffef..f14f7bb679c03fe33b49b540f617d1891e33fca7 100644 (file)
@@ -1,6 +1,6 @@
 /* ELF support for BFD.
    Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-   2001
+   2001, 2002
    Free Software Foundation, Inc.
 
    Written by Fred Fish @ Cygnus Support, from information published
@@ -199,6 +199,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 /* Old version of PowerPC, this should be removed shortly. */
 #define EM_PPC_OLD     17
 
+/* (Depreciated) Temporary number for the OpenRISC processor.  */
+#define EM_OR32               0x8472
+
 /* Cygnus M32R ELF backend.  Written in the absence of an ABI.  */
 #define EM_CYGNUS_M32R 0x9041
 
@@ -251,6 +254,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define PT_NOTE                4               /* Auxiliary information */
 #define PT_SHLIB       5               /* Reserved, unspecified semantics */
 #define PT_PHDR                6               /* Entry for header table itself */
+#define PT_TLS         7               /* Thread local storage segment */
 #define PT_LOOS         0x60000000     /* OS-specific */
 #define PT_HIOS         0x6fffffff     /* OS-specific */
 #define PT_LOPROC      0x70000000      /* Processor-specific */
@@ -319,6 +323,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define SHF_LINK_ORDER  (1 << 7)       /* Preserve section ordering when linking */
 #define SHF_OS_NONCONFORMING (1 << 8)  /* OS specific processing required */
 #define SHF_GROUP      (1 << 9)        /* Member of a section group */
+#define SHF_TLS                (1 << 10)       /* Thread local storage section */
 
 /* #define SHF_MASKOS  0x0F000000    *//* OS-specific semantics */
 #define SHF_MASKOS     0x0FF00000      /* New value, Oct 4, 1999 Draft */
@@ -342,11 +347,34 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define NT_LWPSINFO    17              /* Has a struct lwpsinfo_t */
 #define NT_WIN32PSTATUS        18              /* Has a struct win32_pstatus */
 
+
+/* Note segments for core files on NetBSD systems.  Note name
+   must start with "NetBSD-CORE".  */
+
+#define NT_NETBSDCORE_PROCINFO 1       /* Has a struct procinfo */
+#define NT_NETBSDCORE_FIRSTMACH        32      /* start of machdep note types */
+
+
 /* Values of note segment descriptor types for object files.  */
 
 #define NT_VERSION     1               /* Contains a version string.  */
 #define NT_ARCH                2               /* Contains an architecture string.  */
 
+/* Values for GNU .note.ABI-tag notes.  Note name is "GNU".  */
+
+#define NT_GNU_ABI_TAG         1
+#define GNU_ABI_TAG_LINUX      0
+#define GNU_ABI_TAG_HURD       1
+#define GNU_ABI_TAG_SOLARIS    2
+
+/* Values for NetBSD .note.netbsd.ident notes.  Note name is "NetBSD".  */
+
+#define NT_NETBSD_IDENT                1
+
+/* Values for FreeBSD .note.ABI-tag notes.  Note name is "FreeBSD".  */
+
+#define NT_FREEBSD_ABI_TAG     1
+
 /* These three macros disassemble and assemble a symbol table st_info field,
    which contains the symbol binding and symbol type.  The STB_ and STT_
    defines identify the binding and type.  */
@@ -391,6 +419,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define STT_SECTION    3               /* Symbol associated with a section */
 #define STT_FILE       4               /* Symbol gives a file name */
 #define STT_COMMON     5               /* An uninitialised common block */
+#define STT_TLS                6               /* Thread local data object */
 #define STT_LOOS        10             /* OS-specific semantics */
 #define STT_HIOS        12             /* OS-specific semantics */
 #define STT_LOPROC     13              /* Application-specific semantics */
@@ -409,6 +438,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define SHN_COMMON      0xFFF2         /* Associated symbol is in common */
 #define SHN_XINDEX      0xFFFF         /* Section index is held elsewhere */
 #define SHN_HIRESERVE   0xFFFF         /* End range of reserved indices */
+#define SHN_BAD                ((unsigned) -1) /* Used internally by bfd */
 
 /* The following constants control how a symbol may be accessed once it has
    become part of an executable or shared library.  */
@@ -558,6 +588,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define DF_SYMBOLIC    (1 << 1)
 #define DF_TEXTREL     (1 << 2)
 #define DF_BIND_NOW    (1 << 3)
+#define DF_STATIC_TLS  (1 << 4)
 
 /* These constants are used for the version number of a Elf32_Verdef
    structure.  */
This page took 0.026293 seconds and 4 git commands to generate.