[lld] r246901 - [elf2] Correctly handle sections with an alignment of 0. Spec says to treat it as an alignment of 1.

Michael Spencer via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 4 19:01:27 PDT 2015


On Fri, Sep 4, 2015 at 5:48 PM, Davide Italiano <davide at freebsd.org> wrote:
> On Fri, Sep 4, 2015 at 5:25 PM, Michael J. Spencer via llvm-commits
> <llvm-commits at lists.llvm.org> wrote:
>> Author: mspencer
>> Date: Fri Sep  4 19:25:33 2015
>> New Revision: 246901
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=246901&view=rev
>> Log:
>> [elf2] Correctly handle sections with an alignment of 0. Spec says to treat it as an alignment of 1.
>>
>> Added: lld/trunk/test/elf2/section-align-0.test
>> URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/section-align-0.test?rev=246901&view=auto
>> ==============================================================================
>> --- lld/trunk/test/elf2/section-align-0.test (added)
>> +++ lld/trunk/test/elf2/section-align-0.test Fri Sep  4 19:25:33 2015
>> @@ -0,0 +1,19 @@
>> +# RUN: yaml2obj -format elf %s -o %t
>> +# RUN: lld -flavor gnu2 %t -o %tout
>> +
>
> Is there any reason why you can't use assembler for testing?

Feel free to change it if you know the magic incantation necessary to
get llvm-mc to emit an alignment of 0.

- Michael Spencer

>
> --
> Davide
>
> "There are no solved problems; there are only problems that are more
> or less solved" -- Henri Poincare


More information about the llvm-commits mailing list