This patch adds the '-Bsymbolic' flag when we perform linking for the
offloading device. We already pass '-fvisibility=protected' but this is
not properly handled when using the bfd linker as is described in
https://maskray.me/blog/2021-05-16-elf-interposition-and-bsymbolic.
Previously this caused linker errors when creating the shared library.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Can we drop an xfail in an existing test as part of this patch?
clang/lib/Driver/ToolChains/Gnu.cpp | ||
---|---|---|
576 | Perhaps a comment to the effect that the symbols are protected which makes Bsymbolic redundant, except in that it works around an issue in bfd? |
Comment Actions
We can drop an XFAIL for AMDGPU, but that's not related to the problem this fixes, we don't have any XFAIL lines for x86 tests.
Perhaps a comment to the effect that the symbols are protected which makes Bsymbolic redundant, except in that it works around an issue in bfd?