[OpenMP] Remove `-Bsymbolic` flag for device linking in the GNU toolchain
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 20 Oct 2022 15:38:27 +0000 (10:38 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Thu, 20 Oct 2022 16:25:16 +0000 (11:25 -0500)
commit2a9a13d9cc5fceeb2cdb293dffeca0bc326c479f
tree80a2b78bdd2df918eee937097b8b2e177396714a
parent429d3d4e9d8dd9f8a07c5304b7d840395521c882
[OpenMP] Remove `-Bsymbolic` flag for device linking in the GNU toolchain

Previously, OpenMP linking would be done explicitly in a linker stage.
For `x86_64` offloading this would just use the host linker, which could
be the `bfd` linker. This linker had problems linking relocations
against variables with protected visibility so we force `-Bsymbolic`
when linking. After the deprecation of the old offloading driver this
code is no longer used and can be removed.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D136363
clang/lib/Driver/ToolChains/Gnu.cpp