[PATCH] D79114: [lld-macho] Dylib symbols should always replace undefined symbols

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 3 16:59:15 PDT 2020


MaskRay added a comment.

This behavior is reasonable to me but where can we find authoritative symbol resolution rules? (You may be aware of https://lld.llvm.org/NewLLD.html "Efficient archive file handling". The ELF port has different resolution rules regarding archives.)



================
Comment at: lld/test/MachO/resolution.s:2
+# REQUIRES: x86
+# RUN: mkdir -p %t
+# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %p/Inputs/libresolution.s \
----------------
Consider inlining short Inputs/* file:
```
# RUN: echo '.globl _foo, _bar, _baz; _foo: _bar: _baz' | \
# RUN:   llvm-mc -filetype=obj -triple=x86_64-apple-darwin - -o %t/libresolution.o
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79114/new/

https://reviews.llvm.org/D79114





More information about the llvm-commits mailing list