[PATCH] D61714: [MachO] Fix two bugs with reexported dylibs

Nicholas Allegra via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 19:36:39 PDT 2019


comex added a comment.

Oops, forgot to mention:

This will reproduce the issue:

  echo 'int x = 2;' > sub.c
  clang -dynamiclib -o libsub.dylib sub.c -install_name /usr/local/lib/libsub.dylib
  clang -dynamiclib -o libreexporter.dylib -x c /dev/null -Wl,-reexport-lsub -L.
  echo 'extern int x; int main() { return x; }' > client.c
  clang -c -o client.o client.c
  # crashes:
  /path/to/ld64.lld -o client -L. client.o -lreexporter -lSystem

Also, I don't have commit access, so someone will have to commit the patch for me.


Repository:
  rLLD LLVM Linker

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

https://reviews.llvm.org/D61714





More information about the llvm-commits mailing list