[all-commits] [llvm/llvm-project] eeb29c: [OpenMP] Add -Bsymbolic to arguments for GNU linker

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Feb 4 12:13:53 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eeb29c8477d96ad821b3283dad8ed060a3426118
      https://github.com/llvm/llvm-project/commit/eeb29c8477d96ad821b3283dad8ed060a3426118
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-02-04 (Fri, 04 Feb 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Gnu.cpp

  Log Message:
  -----------
  [OpenMP] Add -Bsymbolic to arguments for GNU linker

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.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D119018




More information about the All-commits mailing list