[all-commits] [llvm/llvm-project] eedbe4: [LLD] Enable --no-undefined-version by default.

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Nov 7 14:15:43 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eedbe44b8755f7d162eee43cb3e8c9da1e61ebad
      https://github.com/llvm/llvm-project/commit/eedbe44b8755f7d162eee43cb3e8c9da1e61ebad
  Author: Dan Albert <danalbert at google.com>
  Date:   2022-11-07 (Mon, 07 Nov 2022)

  Changed paths:
    M lld/ELF/Driver.cpp
    M lld/ELF/Options.td
    M lld/docs/ReleaseNotes.rst
    M lld/docs/ld.lld.1
    M lld/test/ELF/verdef-defaultver.s
    M lld/test/ELF/verdef-dependency.s
    M lld/test/ELF/verneed.s
    M lld/test/ELF/version-script-extern-undefined.s
    M lld/test/ELF/version-script-local-preemptible.s
    M lld/test/ELF/version-script-noundef.s
    M lld/test/ELF/version-script-reassign.s

  Log Message:
  -----------
  [LLD] Enable --no-undefined-version by default.

Allowing incorrect version scripts is not a helpful default. Flip that
to help users find their bugs at build time rather than at run time.

Reviewed By: MaskRay

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


  Commit: 432a7e284440c719637fe34b972c96c9af0e01f1
      https://github.com/llvm/llvm-project/commit/432a7e284440c719637fe34b972c96c9af0e01f1
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-11-07 (Mon, 07 Nov 2022)

  Changed paths:
    M openmp/runtime/cmake/LibompHandleFlags.cmake
    M openmp/runtime/cmake/config-ix.cmake

  Log Message:
  -----------
  [libomp] Add -Wl,--undefined-version workaround

Issue #58858: when linking libomp.so, exports_so.txt has non-existent/undefined
symbols which cause errors to ld --no-undefined-version. Use
-Wl,--undefined-version if available (gold, ld.lld, future GNU ld 2.40).


Compare: https://github.com/llvm/llvm-project/compare/430ca14af835...432a7e284440


More information about the All-commits mailing list