[PATCH] D112925: [ELF] Place an orphan section to the same memory region as its anchor section

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 1 05:27:45 PDT 2021


ikudrin created this revision.
ikudrin added reviewers: MaskRay, peter.smith.
ikudrin added projects: lld, LLVM.
Herald added subscribers: arichardson, emaste.
ikudrin requested review of this revision.

This is somehow similar to D111717 <https://reviews.llvm.org/D111717>, but this time for memory regions. GNU ld puts orphan sections after anchor sections and in the same memory regions. It looks like it does not do an attribute-based search if a memory region for the anchor section is already known.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112925

Files:
  lld/ELF/LinkerScript.cpp
  lld/ELF/LinkerScript.h
  lld/ELF/Writer.cpp
  lld/test/ELF/linkerscript/orphan-memory.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112925.383782.patch
Type: text/x-patch
Size: 4586 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211101/888dd029/attachment.bin>


More information about the llvm-commits mailing list