public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2] elf: Synchronize <elf.h> section header flags with binutils
@ 2020-12-03 13:19 Florian Weimer
  2020-12-03 13:24 ` H.J. Lu
  2020-12-03 13:38 ` Mark Wielaard
  0 siblings, 2 replies; 10+ messages in thread
From: Florian Weimer @ 2020-12-03 13:19 UTC (permalink / raw)
  To: libc-alpha; +Cc: Nick Clifton, Mark J. Wielaard

binutils 2.36 will add SHF_GNU_RETAIN support.  SHF_GNU_BUILD_NOTE
was also missing from the glibc header.

---
v2: Fix typo 29 typo.

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

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

-- 
Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-12-12  9:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-03 13:19 [PATCH v2] elf: Synchronize <elf.h> section header flags with binutils Florian Weimer
2020-12-03 13:24 ` H.J. Lu
2020-12-03 13:38 ` Mark Wielaard
2020-12-03 13:45   ` Florian Weimer
2020-12-03 13:59     ` Mark Wielaard
2020-12-07 14:00       ` Nick Clifton
2020-12-07 14:03         ` Florian Weimer
2020-12-07 16:19           ` Nick Clifton
2020-12-11 23:07             ` Mark Wielaard
2020-12-12  9:16               ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).