elf: Synchronize <elf.h> section header flags with binutils

Message ID 87pn3r11br.fsf@oldenburg2.str.redhat.com
State Superseded
Headers
Series elf: Synchronize <elf.h> section header flags with binutils |

Commit Message

Florian Weimer Dec. 3, 2020, 1:11 p.m. UTC
  binutils 2.36 will add SHF_GNU_RETAIN support.  SHF_GNU_BUILD_NOTE
was also missing from the glibc header.

---
 elf/elf.h | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Florian Weimer Dec. 3, 2020, 1:16 p.m. UTC | #1
* Florian Weimer via Libc-alpha:

> +#define SHF_GNU_BUILD_NOTE   (1 << 29)  /* Contains GNU build notes.  */

Meh, typo.  I'll resubmit.

Florian
  

Patch

diff --git a/elf/elf.h b/elf/elf.h
index 0ed6753a93..8cb31eed99 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 << 29)  /* 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