[lld] r227711 - [test] Add test for section groups and deadstrip

Shankar Easwaran shankare at codeaurora.org
Fri Feb 6 07:07:21 PST 2015


On 2/6/2015 6:52 AM, Rafael EspĂ­ndola wrote:
> On 5 February 2015 at 19:12, Shankar Easwaran <shankare at codeaurora.org> wrote:
>> You need to keep the group if you are referring to one function in the
>> group. Its a bug with gold/gnu if its throwing away the whole group.
> No, it is not.
>
> Please point to the part of the ELF spec that supports your statement.
>
The resolver regards the group as one unit and the garbage collection 
should also treat them as one unit.

The message from Cary here has the snip.

https://sourceware.org/ml/binutils/2012-01/msg00119.html

<snip>

Even better, to my mind, we could use (both COMDAT and non-COMDAT)
group sections to tie the code and debug info (and static data, and
eh_frame info, etc.) together into a single group. *Garbage collection**
**could then treat each such group as an atomic unit: any reference to a**
**group member section makes the whole group reachable*. Back when we
added COMDAT group sections to the ELF format, we had in mind
something like this, which is why each group section begins with a
flag word with GRP_COMDAT set to identify a COMDAT group.

</snip>

Shankar Easwaran

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150206/fec7ff46/attachment.html>


More information about the llvm-commits mailing list