[PATCH] D40364: [ELF] Skip over empty sections when checking for contiguous relro

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 23 07:00:23 PST 2017


On 22 November 2017 at 22:41, Rafael Avila de Espindola
<rafael.espindola at gmail.com> wrote:
> Peter Smith via Phabricator <reviews at reviews.llvm.org> writes:
>
>> +// RUN: echo "SECTIONS { \
>> +// RUN: .ctors : { *(.ctors) } \
>> +// RUN: .large1 : { *(.large1) } \
>> +// RUN: .dynamic : { *(.dynamic) } \
>> +// RUN: .zero_size : { *(.zero_size) } \
>> +// RUN: .jcr : { *(.jcr) } \
>> +// RUN: .got.plt : { *(.got.plt) } \
>> +// RUN: .large2 : { *(.large2) } \
>> +// RUN: .data.rel.ro : { *(.data.rel.ro.*) ; . =  ALIGN(1); } \
>
> Why only the last one needs ". = ALIGN(1);"?
>

I've removed it as I don't think it is needed, in an earlier version I
was trying to model the original ldscript .bss section contents.


More information about the llvm-commits mailing list