This is the mail archive of the
mailing list for the binutils project.
RFC Adding a section group flag of 0
- From: Nick Clifton <nickc at redhat dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>, ruiu at google dot com, peter dot smith at linaro dot org, sguelton at redhat dot com
- Date: Wed, 9 Jan 2019 14:53:39 +0000
- Subject: RFC Adding a section group flag of 0
Currently the ELF standard for section groups requires that the first word
of data in the group section be a flag, with only certain values recognised:
The following flags are currently defined:
Figure 4-13: Section Group Flags
I would like to propose adding a new value to this list. A value of 0.
This value would indicate that the section group has no special processing
semantics, and that the contents of the group, unless discarded via garbage
collection, should be linked as normal.
This matches the current behaviour of the bfd and gold linkers, and it would
also help to resolve a problem for the lld linker:
This is not a theoretical problem, as binaries containing section groups with
a flag value of zero already exist:
The maintainers of lld have stated, quite reasonably, that they do not want to
add support for an unofficial flag value. Hence I would like to make the value
What do people think ?