[all-commits] [llvm/llvm-project] 26fcee: [ELF] Add --no-warnings/-w

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Oct 24 10:54:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26fcee601fb340bf19b9f23ab6e7ac1772aa14dc
      https://github.com/llvm/llvm-project/commit/26fcee601fb340bf19b9f23ab6e7ac1772aa14dc
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-10-24 (Mon, 24 Oct 2022)

  Changed paths:
    M lld/ELF/Driver.cpp
    M lld/ELF/Options.td
    M lld/docs/ReleaseNotes.rst
    M lld/docs/ld.lld.1
    R lld/test/ELF/fatal-warnings.s
    M lld/test/ELF/no-inhibit-exec.s
    A lld/test/ELF/warnings.s

  Log Message:
  -----------
  [ELF] Add --no-warnings/-w

Mach-O ld64 supports -w to suppress warnings. GNU ld 2.40 will support the
option as well (https://sourceware.org/bugzilla/show_bug.cgi?id=29654).

This feature has some small value. E.g. when analyzing a large executable with
relocation overflow issues, we may use --noinhibit-exec --emit-relocs to get an
output file with static relocations despite relocation overflow issues. -w can
significantly improve the link time as printing the massive warnings is slow.

Reviewed By: peter.smith

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




More information about the All-commits mailing list