[all-commits] [llvm/llvm-project] 943baf: [ELF] Make compareByFilePosition a strict weak order

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon May 13 15:48:00 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 943baf327409fdcb01c9d02aa3c3368f2fca114b
      https://github.com/llvm/llvm-project/commit/943baf327409fdcb01c9d02aa3c3368f2fca114b
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-05-13 (Mon, 13 May 2024)

  Changed paths:
    M lld/ELF/Writer.cpp

  Log Message:
  -----------
  [ELF] Make compareByFilePosition a strict weak order

This fixes the new test linkerscript/enable-non-contiguous-regions.test
from #90007 in -stdlib=libc++ -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG builds.

adjustOutputSections does not discard the output section .potential_a
because it contained .a (which would be spilled to .actual_a).
.potential_a and .bc have the same address and will cause an assertion
failure.



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