MaskRay wrote:

> ```shell
> ../build/bin/clang test.c -o libtest.so -fPIC -shared -v -Wl,--as-needed 
> -Wl,--trace-symbol=__cxa_finalize
> ```

This command line does not close `--as-needed` with `--no-as-needed`, so `-lc` 
is linked in `as-needed` mode.
The driver is not responsible for forcing `--no-as-needed`. I believe this PR 
should be closed.

https://github.com/llvm/llvm-project/pull/95848
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to