Skip to content

Commit fbcb92c

Browse files
committed
[ELF] Test non-alloc orphan that does not the RF_NOT_ADDR_SET rank flag
1 parent 06f03b8 commit fbcb92c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lld/test/ELF/linkerscript/sections-nonalloc.s

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
# RUN: ld.lld -T %t/b.lds %t.o -o %tb
3535
# RUN: llvm-readelf -S -l %tb | FileCheck %s --check-prefix=CHECK1
3636

37+
## --section-start causes the orphan other3 to be considered before .data3.
38+
## The non-alloc other3 does not disable the placement of .data3.
39+
# RUN: ld.lld -T %t/b.lds %t.o -o %tb --section-start=other3=0
40+
# RUN: llvm-readelf -S -l %tb | FileCheck %s --check-prefix=CHECK1
41+
3742
# CHECK1: [Nr] Name Type Address Off Size ES Flg Lk
3843
# CHECK1-NEXT: [ 0] NULL 0000000000000000 000000 000000 00 0
3944
# CHECK1-NEXT: [ 1] .text PROGBITS 00000000000000b0 0000b0 000001 00 AX 0

0 commit comments

Comments
 (0)