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

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Apr 6 22:41:39 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c29c19cb5327624dd31fcb776f8fbe66ca1011bb
      https://github.com/llvm/llvm-project/commit/c29c19cb5327624dd31fcb776f8fbe66ca1011bb
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-04-06 (Wed, 06 Apr 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




More information about the All-commits mailing list