[all-commits] [llvm/llvm-project] 2fcaa0: [ELF] -z undefs: handle relocations referencing un...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jun 11 20:37:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fcaa00d1e2317a90c9071b735eb0e758b5dd58b
      https://github.com/llvm/llvm-project/commit/2fcaa00d1e2317a90c9071b735eb0e758b5dd58b
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-06-11 (Wed, 11 Jun 2025)

  Changed paths:
    M lld/ELF/Relocations.cpp
    M lld/test/ELF/weak-undef-rw.s

  Log Message:
  -----------
  [ELF] -z undefs: handle relocations referencing undefined non-weak like undefined weak

* Merge the special case into isStaticLinkTimeConstant
* Generalize isUndefWeak to isUndefined. undefined non-weak is an error
  case. We choose to be general, which also brings us in line with GNU ld.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list