[all-commits] [llvm/llvm-project] b084d1: [Driver] Wrap -lgcc_s in -z ignore/-z record on So...

rorth via All-commits all-commits at lists.llvm.org
Wed Sep 6 10:44:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b084d10c2898e4a9da7348cd4774f4fe409fe83c
      https://github.com/llvm/llvm-project/commit/b084d10c2898e4a9da7348cd4774f4fe409fe83c
  Author: rorth <ro at gcc.gnu.org>
  Date:   2023-09-06 (Wed, 06 Sep 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/Solaris.cpp
    M clang/test/Driver/solaris-ld.c

  Log Message:
  -----------
  [Driver] Wrap -lgcc_s in -z ignore/-z record on Solaris (#65487)

`clang` currently links `libgcc_s` unconditionally on Solaris, which is
unnecessary.

This patch wraps it in `-z ignore`/`-z record` instead.

Tested on `amd64-pc-solaris2.11` and `x86_64-pc-linux-gnu`.




More information about the All-commits mailing list