[all-commits] [llvm/llvm-project] e70d79: [ELF] Ignore --no-add-needed

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed May 18 20:31:21 PDT 2022


  Branch: refs/heads/release/14.x
  Home:   https://github.com/llvm/llvm-project
  Commit: e70d79f1e8c0802c4039d2d66131c00590d49722
      https://github.com/llvm/llvm-project/commit/e70d79f1e8c0802c4039d2d66131c00590d49722
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-05-18 (Wed, 18 May 2022)

  Changed paths:
    M lld/ELF/Options.td
    M lld/test/ELF/silent-ignore.test

  Log Message:
  -----------
  [ELF] Ignore --no-add-needed

It is used by a few projects like keepassxc and mumble.
Also see https://bugzilla.redhat.com/show_bug.cgi?id=2070813 that Fedora gcc has
an (unneeded) gcc12-no-add-needed.patch which adds --no-add-needed, although
--[no-]add-needed has been deprecated in GNU ld since 2009. Adding this has low
costs and makes several folks happy.

This basically restores 8f13bef575c97db4d6c146c3bb647ac9e73a9248.

Fixes https://github.com/llvm/llvm-project/issues/54756

(cherry picked from commit c29c19cb5327624dd31fcb776f8fbe66ca1011bb)




More information about the All-commits mailing list