about summary refs log tree commit diff
path: root/elf/elf.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-12-03 14:10:21 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-12-03 14:17:29 +0100
commitc41d197ec4a564a588e1cf3855d955297f2915c4 (patch)
treedf8210bd8255958d533238b20a387997d658c3bc /elf/elf.h
parent1d9cbb96082e646de7515a1667efa041ffb79958 (diff)
downloadglibc-c41d197ec4a564a588e1cf3855d955297f2915c4.tar.gz
glibc-c41d197ec4a564a588e1cf3855d955297f2915c4.tar.xz
glibc-c41d197ec4a564a588e1cf3855d955297f2915c4.zip
elf: Synchronize <elf.h> section header flags with binutils
binutils 2.36 will add SHF_GNU_RETAIN support.  SHF_GNU_BUILD_NOTE
was also missing from the glibc header.
Diffstat (limited to 'elf/elf.h')
-rw-r--r--elf/elf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/elf.h b/elf/elf.h
index 0ed6753a93..bd7af7cca4 100644
--- 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