libelf: Sync elf.h from glibc.
authorMark Wielaard <mark@klomp.org>
Sat, 12 Dec 2020 19:48:40 +0000 (20:48 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 16 Dec 2020 18:44:47 +0000 (19:44 +0100)
Adds SHF_GNU_RETAIN.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libelf/ChangeLog
libelf/elf.h

index dbc99ee..a1fd414 100644 (file)
@@ -1,3 +1,7 @@
+2020-12-12  Mark Wielaard  <mark@klomp.org>
+
+       * elf.h: Update from glibc.
+
 2020-12-16  Dmitry V. Levin  <ldv@altlinux.org>
 
        * libelfP.h (_): Remove.
index 6439c1a..8e3e618 100644 (file)
@@ -318,7 +318,7 @@ typedef struct
                                /* reserved 184 */
 #define EM_AVR32       185     /* Amtel 32-bit microprocessor */
 #define EM_STM8                186     /* STMicroelectronics STM8 */
-#define EM_TILE64      187     /* Tileta TILE64 */
+#define EM_TILE64      187     /* Tilera TILE64 */
 #define EM_TILEPRO     188     /* Tilera TILEPro */
 #define EM_MICROBLAZE  189     /* Xilinx MicroBlaze */
 #define EM_CUDA                190     /* NVIDIA CUDA */
@@ -441,7 +441,7 @@ typedef struct
 #define SHT_FINI_ARRAY   15            /* Array of destructors */
 #define SHT_PREINIT_ARRAY 16           /* Array of pre-constructors */
 #define SHT_GROUP        17            /* Section group */
-#define SHT_SYMTAB_SHNDX  18           /* Extended section indeces */
+#define SHT_SYMTAB_SHNDX  18           /* Extended section indices */
 #define        SHT_NUM           19            /* Number of defined types.  */
 #define SHT_LOOS         0x60000000    /* Start OS-specific.  */
 #define SHT_GNU_ATTRIBUTES 0x6ffffff5  /* Object attributes.  */
@@ -478,6 +478,7 @@ typedef struct
 #define SHF_COMPRESSED      (1 << 11)  /* Section with compressed data. */
 #define SHF_MASKOS          0x0ff00000 /* OS-specific.  */
 #define SHF_MASKPROC        0xf0000000 /* Processor-specific */
+#define SHF_GNU_RETAIN      (1 << 21)  /* Not to be GCed by linker.  */
 #define SHF_ORDERED         (1 << 30)  /* Special ordering requirement
                                           (Solaris).  */
 #define SHF_EXCLUDE         (1U << 31) /* Section is excluded unless
@@ -1046,7 +1047,7 @@ typedef struct
 #define        VER_NDX_LORESERVE       0xff00  /* Beginning of reserved entries.  */
 #define        VER_NDX_ELIMINATE       0xff01  /* Symbol is to be eliminated.  */
 
-/* Auxialiary version information.  */
+/* Auxiliary version information.  */
 
 typedef struct
 {
@@ -2139,9 +2140,9 @@ enum
 #define EFA_PARISC_1_1             0x0210 /* PA-RISC 1.1 big-endian.  */
 #define EFA_PARISC_2_0             0x0214 /* PA-RISC 2.0 big-endian.  */
 
-/* Additional section indeces.  */
+/* Additional section indices.  */
 
-#define SHN_PARISC_ANSI_COMMON 0xff00     /* Section for tenatively declared
+#define SHN_PARISC_ANSI_COMMON 0xff00     /* Section for tentatively declared
                                              symbols in ANSI C.  */
 #define SHN_PARISC_HUGE_COMMON 0xff01     /* Common blocks in huge model.  */
 
@@ -3970,7 +3971,7 @@ enum
 #define R_METAG_RELBRANCH      4
 #define R_METAG_GETSETOFF      5
 
-/* Backward compatability */
+/* Backward compatibility */
 #define R_METAG_REG32OP1       6
 #define R_METAG_REG32OP2       7
 #define R_METAG_REG32OP3       8