[lld-macho] Dylib symbols should always replace undefined symbols
authorJez Ng <jezng@fb.com>
Wed, 29 Apr 2020 12:30:47 +0000 (05:30 -0700)
committerJez Ng <jezng@fb.com>
Sun, 10 May 2020 03:56:22 +0000 (20:56 -0700)
commit5d3feefa0df9c054f6d683ca13316a822b596f87
tree7a82090db27cdff03e6f23c7d7e580ae77160fed
parentb3e2fc931d2e06560cc8c1640e006aa25ff1ef5a
[lld-macho] Dylib symbols should always replace undefined symbols

Summary:
Otherwise we get undefined symbol errors depending on the order of
arguments on the command line.

Depends on D78270.

Reviewers: ruiu, pcc, MaskRay, smeenai, alexshap, gkm, Ktwu, christylee

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D79114
lld/MachO/SymbolTable.cpp
lld/test/MachO/resolution.s [new file with mode: 0644]