[PATCH v2] elf: Synchronize <elf.h> section header flags with binutils

Florian Weimer fweimer@redhat.com
Thu Dec 3 13:45:20 GMT 2020


* Mark Wielaard:

> Hi Florian,
>
> On Thu, 2020-12-03 at 14:19 +0100, Florian Weimer wrote:
>> binutils 2.36 will add SHF_GNU_RETAIN support.  SHF_GNU_BUILD_NOTE
>> was also missing from the glibc header.
>
> What is SHF_GNU_BUILD_NOTE? What sets it, when is it set and how should
> the presence or absence of the flag be interpreted?

It was added in:

commit 9ef920e933bf2ea228c909cf81636e6d9577e51e
Author: Nick Clifton <nickc@redhat.com>
Date:   Wed Mar 1 11:09:46 2017 +0000

    Add support for displaying and merging GNU_BUILD_NOTEs.

I agree that it would be nice to add it to the GNU gABI documentation.

In any case, the flag is now taken and should be mentioned in <elf.h>.

Thanks,
Florian
-- 
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



More information about the Libc-alpha mailing list