[PATCH] D87909: [lld-macho] Support absolute symbols

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 08:38:20 PDT 2020


int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
int3 requested review of this revision.

They operate like Defined symbols but with no associated InputSection.

Note that `ld64` seems to treat the weak definition flag like a no-op for
absolute symbols, so I have replicated that behavior.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87909

Files:
  lld/MachO/ExportTrie.cpp
  lld/MachO/InputFiles.cpp
  lld/MachO/InputFiles.h
  lld/MachO/SymbolTable.cpp
  lld/MachO/Symbols.cpp
  lld/MachO/Symbols.h
  lld/MachO/SyntheticSections.cpp
  lld/test/MachO/abs-symbols.s
  lld/test/MachO/invalid/abs-duplicate.s
  lld/test/MachO/invalid/dso-handle-duplicate.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87909.292805.patch
Type: text/x-patch
Size: 12228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200918/6b639bba/attachment.bin>


More information about the llvm-commits mailing list