[lld] [ELF] Orphan placement: remove hasInputSections condition (PR #93761)

Andrew Ng via llvm-commits llvm-commits at lists.llvm.org
Thu May 30 07:50:25 PDT 2024


================
@@ -20,14 +20,14 @@
 
 # CHECK: Section Headers
 # CHECK: .pad
+# CHECK-NEXT: .orphan1
 # CHECK-NEXT: .text
 # CHECK-NEXT: .orphan2
 # CHECK-NEXT: .ro
-# CHECK-NEXT: .orphan1
 
 # CHECK: Segment Sections
-# CHECK-NEXT: .pad .text .orphan2
-# CHECK-NEXT: .ro .orphan1
+# CHECK-NEXT: .pad .orphan1 .text .orphan2
+# CHECK-NEXT: .ro
----------------
nga888 wrote:

IIRC, I think it was this behaviour that was the reason for the `Live` patch from https://reviews.llvm.org/D61197, i.e. to ignore `.pad` when placing orphans as stated by the comment on line 15 in this test.

https://github.com/llvm/llvm-project/pull/93761


More information about the llvm-commits mailing list