================ @@ -1761,6 +1761,9 @@ void RelocationBaseSection::computeRels() { llvm::sort(nonRelative, irelative, [&](auto &a, auto &b) { return std::tie(a.r_sym, a.r_offset) < std::tie(b.r_sym, b.r_offset); }); + llvm::sort(irelative, relocs.end(), [&](auto &a, auto &b) { ---------------- pcc wrote:
For the irelative relocations it's also needed for output determinism. Added a comment explaining that. https://github.com/llvm/llvm-project/pull/133531 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits