[all-commits] [llvm/llvm-project] 5fca9c: [BOLT] Change order of new sections

maksfb via All-commits all-commits at lists.llvm.org
Fri Oct 7 11:21:04 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5fca9c5763e85c81bdbd61c67825a63cfdb0058f
      https://github.com/llvm/llvm-project/commit/5fca9c5763e85c81bdbd61c67825a63cfdb0058f
  Author: Maksim Panchenko <maks at fb.com>
  Date:   2022-10-07 (Fri, 07 Oct 2022)

  Changed paths:
    M bolt/include/bolt/Core/BinarySection.h
    M bolt/lib/Core/BinarySection.cpp
    A bolt/test/runtime/X86/section-order.test

  Log Message:
  -----------
  [BOLT] Change order of new sections

While the order of new sections in the output binary was deterministic
in the past (i.e. there was no run-to-run variation), it wasn't always
rational as we used size to define the precedence of allocatable
sections within "code" or "data" groups (probably unintentionally).
Fix that by defining stricter section-ordering rules.

Other than the order of sections, this should be NFC.

Reviewed By: rafauler

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




More information about the All-commits mailing list