[PATCH] D25325: [ELF] Change way we place non-scripted (orphan) sections

Eugene Leviant via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 7 08:24:50 PST 2016


This one works, although slightly difficult to understand. I'm happy
with any of the patches, which one would you like to push?

2016-11-07 18:38 GMT+03:00 Rafael EspĂ­ndola <rafael.espindola at gmail.com>:
> Excellent test case!
>
> I have included it as orphan2.s in the attached patch. What do you think?
>
> Cheers,
> Rafael
>
>
> On 7 November 2016 at 09:50, Eugene Leviant <evgeny.leviant at gmail.com> wrote:
>> Rafael, please take a look at orphan.s test case. To my understanding
>> orphan .jcr is a relro section and
>> should be put in the beginning of RW section list. Your patch places
>> it somewhere in the middle.
>> The NOBITS sections are placed correctly by both mine and your versions.
>>
>> I don't know if this relro section issue is serious, but I would still
>> respect sort order.
>>
>> 2016-11-07 17:47 GMT+03:00 Eugene Leviant <evgeny.leviant at gmail.com>:
>>> evgeny777 updated this revision to Diff 77031.
>>> evgeny777 added a comment.
>>>
>>> Rebased +  modified test case orphan.s
>>>
>>>
>>> https://reviews.llvm.org/D25325
>>>
>>> Files:
>>>   ELF/Writer.cpp
>>>   test/ELF/linkerscript/orphan.s
>>>   test/ELF/linkerscript/sections-constraint.s
>>>


More information about the llvm-commits mailing list