--
You received this message because you are subscribed to the Google Groups "Generic System V Application Binary Interface" group.
To unsubscribe from this group and stop receiving emails from it, send an email to generic-abi...@googlegroups.com.
To post to this group, send email to gener...@googlegroups.com.
Visit this group at https://groups.google.com/group/generic-abi.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Generic System V Application Binary Interface" group.
To unsubscribe from this group and stop receiving emails from it, send an email to generic-abi...@googlegroups.com.
To post to this group, send email to gener...@googlegroups.com.
Visit this group at https://groups.google.com/group/generic-abi.
For more options, visit https://groups.google.com/d/optout.
* Nick Clifton:
> 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:
The ELF spec (aka gABI) does not discuss GC at all. Garbage collection
is offered by ld and gold as an optional feature beyond what is
specified by the gABI. It has nothing to do with section groups.
This requirement is not intended to imply that special case behavior like removing debugging information requires removing the sections to which that information refers, even if they are part of the same group.
> This is not a theoretical problem, as binaries containing section groups with
> a flag value of zero already exist:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1658942
>
> From the man page: https://www.mankier.com/1/annobin
"attach""no-attach" When gcc compiles code with the -ffunction-sections option active it will place each function into its own section. When the annobin attach option is active the plugin will attempt to attach the function section to a group containing the notes and relocations for the function. In that way, if the linker decides to discard the function, it will also know that it should discard the notes and relocations as well.