[all-commits] [llvm/llvm-project] 8cc6a2: [ELF] -r: force -Bstatic
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Jun 14 23:21:12 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8cc6a2469c95f0815487c442495a829c337913c4
https://github.com/llvm/llvm-project/commit/8cc6a2469c95f0815487c442495a829c337913c4
Author: Fangrui Song <i at maskray.me>
Date: 2024-06-14 (Fri, 14 Jun 2024)
Changed paths:
M lld/ELF/Driver.cpp
M lld/test/ELF/libsearch.s
Log Message:
-----------
[ELF] -r: force -Bstatic
In GNU ld, -r forces -Bstatic and has precedence over -Bdynamic: -lfoo
probes libfoo.a but not libfoo.so, even if -Bdynamic is in effect. Our
behavior currently matches gold and probes libfoo.so. Since we don't
have strong opinion on the exact behavior, let's just follow GNU ld and
also unify the reason we report the "attempted static link of dynamic
object " error.
Close #94958
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list