[PATCH] D111717: [ELF] Avoid adding orphan sections to a less fit segment

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 18 06:24:55 PDT 2021


ikudrin added inline comments.


================
Comment at: lld/test/ELF/linkerscript/orphan-phdrs2.test:15
+# CHECK:     Segment Sections...
+# CHECK-NOT: 00{{.*}} .dynamic
+# CHECK:     01 .data .dynamic 
----------------
MaskRay wrote:
> NOT is not needed. A positive CHECK exists.
As a section can be put in several segments, I initially added this `CHECK-NOT` to ensure/demonstrate that `.dynamic` is not in the first `PT_LOAD` segment. A positive `CHECK` can be used, but with a terminating `{{$}}`.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111717/new/

https://reviews.llvm.org/D111717



More information about the llvm-commits mailing list