Richard Earnshaw <rearn...@arm.com> writes:
> On 06/11/12 22:05, Andrew Pinski wrote:
>> Hi,
>>    The problem here is with section anchors turned on, we generate a
>> BSS rather than a local common symbol and we no longer match the
>> pattern: "_ZGVZ3foovE1x,8,8".  This fixes this testcase by just adding
>> -fno-section-anchors.
>>
>
> Why is -fsection-anchors changing the choice of output section?  Sure, 
> section anchors are more useful when you use BSS rather than Common, but 
> it shouldn't in itself be changing that choice.

It's not really changing the output section, just the assembly syntax
used to define the symbol.  Local common ends up as the equivalent of:

        .section .bss,...
        .align   M
foo:
        .size    N

Richard

Reply via email to