[lld] fbcb92c - [ELF] Test non-alloc orphan that does not the RF_NOT_ADDR_SET rank flag
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 13:22:51 PDT 2024
Author: Fangrui Song
Date: 2024-06-06T13:22:47-07:00
New Revision: fbcb92ca017ee7fbf84be808701133fbdf3b1c59
URL: https://github.com/llvm/llvm-project/commit/fbcb92ca017ee7fbf84be808701133fbdf3b1c59
DIFF: https://github.com/llvm/llvm-project/commit/fbcb92ca017ee7fbf84be808701133fbdf3b1c59.diff
LOG: [ELF] Test non-alloc orphan that does not the RF_NOT_ADDR_SET rank flag
Added:
Modified:
lld/test/ELF/linkerscript/sections-nonalloc.s
Removed:
################################################################################
diff --git a/lld/test/ELF/linkerscript/sections-nonalloc.s b/lld/test/ELF/linkerscript/sections-nonalloc.s
index b4fab8c24cfb4..d66e524248cee 100644
--- a/lld/test/ELF/linkerscript/sections-nonalloc.s
+++ b/lld/test/ELF/linkerscript/sections-nonalloc.s
@@ -34,6 +34,11 @@
# RUN: ld.lld -T %t/b.lds %t.o -o %tb
# RUN: llvm-readelf -S -l %tb | FileCheck %s --check-prefix=CHECK1
+## --section-start causes the orphan other3 to be considered before .data3.
+## The non-alloc other3 does not disable the placement of .data3.
+# RUN: ld.lld -T %t/b.lds %t.o -o %tb --section-start=other3=0
+# RUN: llvm-readelf -S -l %tb | FileCheck %s --check-prefix=CHECK1
+
# CHECK1: [Nr] Name Type Address Off Size ES Flg Lk
# CHECK1-NEXT: [ 0] NULL 0000000000000000 000000 000000 00 0
# CHECK1-NEXT: [ 1] .text PROGBITS 00000000000000b0 0000b0 000001 00 AX 0
More information about the llvm-commits
mailing list