[PATCH] D84129: [ELF] -r: rewrite SHT_GROUP content if some members are combined or discarded

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 19 12:44:27 PDT 2020


MaskRay created this revision.
MaskRay added reviewers: grimar, psmith, ruiu.
Herald added subscribers: llvm-commits, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

- If two group members are combined, we should leave just one index in the SHT_GROUP content.
- If a group member is discarded (/DISCARD/ or upcoming -r --gc-sections combination), we should drop its index in the SHT_GROUP content.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84129

Files:
  lld/ELF/InputSection.cpp
  lld/ELF/OutputSections.cpp
  lld/test/ELF/relocatable-comdat.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84129.279105.patch
Type: text/x-patch
Size: 5974 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200719/bb16d604/attachment.bin>


More information about the llvm-commits mailing list