[PATCH] D79926: [lld-macho] Support .subsections_via_symbols

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 14 02:05:47 PDT 2020


int3 created this revision.
int3 added reviewers: ruiu, pcc, MaskRay, smeenai, alexshap, gkm, Ktwu, christylee.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This diff restores and builds upon @pcc and @ruiu's initial work on
subsections.

The .subsections_via_symbols directive indicates we can split each
section along symbol boundaries, unless those symbols have been marked
with `.alt_entry`.

We exercise this functionality in our tests by using order files that
rearrange those symbols.

Depends on D79668 <https://reviews.llvm.org/D79668>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79926

Files:
  lld/MachO/Driver.cpp
  lld/MachO/InputFiles.cpp
  lld/MachO/InputFiles.h
  lld/MachO/InputSection.cpp
  lld/MachO/InputSection.h
  lld/test/MachO/subsections-section-relocs.s
  lld/test/MachO/subsections-symbol-relocs.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79926.263938.patch
Type: text/x-patch
Size: 17043 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200514/08997e4a/attachment-0001.bin>


More information about the llvm-commits mailing list