Handle the case where there are both common and non-common definitions
of the same symbol. Add a bunch of tests to ensure compatibility with ld64.
Details
- Reviewers
gkm - Group Reviewers
Restricted Project - Commits
- rGcd7cb0c30305: [lld-macho] Implement and test resolution of common symbols
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/MachO/SymbolTable.cpp | ||
---|---|---|
85 | Let me be sure I understand:
|
lld/MachO/SymbolTable.cpp | ||
---|---|---|
85 | yup that's right, I was going for bug4bug compatibility. From what I understand, common symbols are being phased out in modern projects, so it's probably not too important anyway |
Temporarily reverted this change as it predecessor broke LLDB build on Arm. https://reviews.llvm.org/D86909
http://lab.llvm.org:8011/builders/lldb-arm-ubuntu/builds/4409
s/</<=/. I assume that replaceSymbol implies extra work, so why do that for equal-sized data?