[LLVMdev] Create "appending" section that can be partially dead stripped

Reid Kleckner rnk at google.com
Mon Aug 4 00:27:32 PDT 2014


On Sat, Aug 2, 2014 at 7:51 AM, Jonas Maebe <jonas.maebe at elis.ugent.be>
wrote:

> On 01/08/14 19:37, Reid Kleckner wrote:
>
>> What happens if you drop appending linkage?  I think it will just work,
>> since you are already using a custom section, which will ensure that all
>> the data appears contiguously in memory.
>>
>
> Thanks for the suggestion, but it still puts everything in a single
> .section statement.


Try giving the globals linkonce_odr linkage instead of external linkage
manually?  This is essentially the effect of -fdata-sections, except it
happens later during codegen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140804/7579e20d/attachment.html>


More information about the llvm-dev mailing list