[PATCH] D106767: [lld/mac] Add support for segment$start$ and segment$end$ symbols

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 25 07:19:58 PDT 2021


thakis created this revision.
thakis added a reviewer: lld-macho.
Herald added a reviewer: gkm.
Herald added a project: lld-macho.
thakis requested review of this revision.

These symbols are somewhat interesting in that they create non-existing
segments, which as far as I know is the only way to create segments
that don't contain any sections.

Final part of part of PR50760. Like D106629 <https://reviews.llvm.org/D106629>, but for segments instead
of sections. I'm not aware of anything that needs this in practice.


https://reviews.llvm.org/D106767

Files:
  lld/MachO/OutputSegment.cpp
  lld/MachO/OutputSegment.h
  lld/MachO/SymbolTable.cpp
  lld/MachO/Writer.cpp
  lld/test/MachO/start-end.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106767.361502.patch
Type: text/x-patch
Size: 9169 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210725/aa17a4d2/attachment.bin>


More information about the llvm-commits mailing list