[all-commits] [llvm/llvm-project] f3ea42: [BOLT] Make sure all section allocations have dete...

Job Noorman via All-commits all-commits at lists.llvm.org
Tue May 2 07:24:49 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3ea4228fd357090e80eb668cc15692150523d0e
      https://github.com/llvm/llvm-project/commit/f3ea4228fd357090e80eb668cc15692150523d0e
  Author: Job Noorman <jnoorman at igalia.com>
  Date:   2023-05-02 (Tue, 02 May 2023)

  Changed paths:
    M bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp

  Log Message:
  -----------
  [BOLT] Make sure all section allocations have deterministic contents

For empty sections, RuntimeDyld always allocates 1 byte but leaves it
uninitialized. This causes the contents of some output sections to be
non-deterministic.

Note that this issue is also solved by D147544.

Fixes #59008

Reviewed By: maksfb

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


  Commit: d755e10e7ac8abe7031c3f119df93541c0a78551
      https://github.com/llvm/llvm-project/commit/d755e10e7ac8abe7031c3f119df93541c0a78551
  Author: Job Noorman <jnoorman at igalia.com>
  Date:   2023-05-02 (Tue, 02 May 2023)

  Changed paths:
    M bolt/lib/Rewrite/MachORewriteInstance.cpp
    A bolt/test/X86/MachO/Inputs/external_symbol.yaml
    A bolt/test/X86/MachO/emit_new_binary_with_external_symbol.test

  Log Message:
  -----------
  [BOLT] Make sure Mach-O binaries are actually linked

Note that this issue is also solved by D147544.

Reviewed By: alexander-shaposhnikov

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


Compare: https://github.com/llvm/llvm-project/compare/e2f7563d7c30...d755e10e7ac8


More information about the All-commits mailing list