We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06f03b8 commit fbcb92cCopy full SHA for fbcb92c
lld/test/ELF/linkerscript/sections-nonalloc.s
@@ -34,6 +34,11 @@
34
# RUN: ld.lld -T %t/b.lds %t.o -o %tb
35
# RUN: llvm-readelf -S -l %tb | FileCheck %s --check-prefix=CHECK1
36
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
+
42
# CHECK1: [Nr] Name Type Address Off Size ES Flg Lk
43
# CHECK1-NEXT: [ 0] NULL 0000000000000000 000000 000000 00 0
44
# CHECK1-NEXT: [ 1] .text PROGBITS 00000000000000b0 0000b0 000001 00 AX 0
0 commit comments