[PATCH] D106427: [lld][ELF] remove empty SyntheticSections from inputSections

Amilendra Kodithuwakku via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 21 02:08:51 PDT 2021


amilendra created this revision.
Herald added subscribers: arichardson, emaste.
Herald added a reviewer: MaskRay.
amilendra requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Change removeUnusedSyntheticSections() to actually remove empty
SyntheticSections in inputSections.

In addition to doing what removeUnusedSyntheticSections() was meant
to do, this will also make the shuffle-sections tests, which shuffles
inputSections, less sensitive to empty Synthetic Sections that
will not appear in the final image.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106427

Files:
  lld/ELF/Writer.cpp
  lld/test/ELF/shuffle-sections-init-fini.s
  lld/test/ELF/shuffle-sections.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106427.360393.patch
Type: text/x-patch
Size: 4876 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210721/dfae4f30/attachment.bin>


More information about the llvm-commits mailing list