]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Synchronize <elf.h> section header flags with binutils
authorFlorian Weimer <fweimer@redhat.com>
Thu, 3 Dec 2020 13:10:21 +0000 (14:10 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 3 Dec 2020 13:17:29 +0000 (14:17 +0100)
binutils 2.36 will add SHF_GNU_RETAIN support.  SHF_GNU_BUILD_NOTE
was also missing from the glibc header.

elf/elf.h

index 0ed6753a93df907eee5352cce59fc226bc3b11e5..bd7af7cca49b956b8134ac03537bc9d79e69fa14 100644 (file)
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -478,6 +478,8 @@ 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_BUILD_NOTE   (1 << 20)  /* Contains GNU build notes.  */
+#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