[llvm] r293936 - Change how we handle section symbols on ELF.
Henric Karlsson via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 22 07:35:39 PST 2017
Hi Rafael
Compiling this one liner input:
@".bss" = local_unnamed_addr global [1 x i16] zeroinitializer
with
./build-all/bin/llc -O0 -march=sparc -o - foo.ll
results in:
LLVM ERROR: invalid symbol redefinition
However putting any other variable before that works. So for example:
@"tmp" = local_unnamed_addr global [1 x i16] zeroinitializer
@".bss" = local_unnamed_addr global [1 x i16] zeroinitializer
works. So it seems like emitting a label with the same name as a
.section, right after the .section is what causes the problem?
Reverting your commits also makes it compile.
/Henric
On 2017-02-22 16:05, Mikael Holmén wrote:
> Hi Rafael,
>
> We found another similar case.
>
> CC:ing my colleague Henric who knows more.
>
> Regards,
> Mikael
>
> On 02/10/2017 04:28 PM, Rafael Avila de Espindola wrote:
>> Mikael Holmén <mikael.holmen at ericsson.com> writes:
>>
>>> On 02/10/2017 04:05 PM, Rafael Espíndola wrote:
>>>> Can you check if the attached patch fixes the issue for you?
>>>>
>>>
>>> Yep, now my function "code" is accepted!
>>
>> Committed as r294752.
>>
>> Thanks,
>> Rafael
>>
>
More information about the llvm-commits
mailing list