[all-commits] [llvm/llvm-project] 207ea5: [BOLT] Add writable segment for allocatable sections

Vladislav Khmelevsky via All-commits all-commits at lists.llvm.org
Tue Mar 14 13:07:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 207ea5f2e4c35c323c3956d32c3d422f2ef46398
      https://github.com/llvm/llvm-project/commit/207ea5f2e4c35c323c3956d32c3d422f2ef46398
  Author: Vladislav Khmelevsky <och95 at yandex.ru>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M bolt/include/bolt/Rewrite/RewriteInstance.h
    M bolt/lib/Rewrite/RewriteInstance.cpp
    A bolt/test/Inputs/reorder-data-writable-ptload.fdata
    A bolt/test/X86/instrumentation-eh_frame_hdr.cpp
    A bolt/test/reorder-data-writable-ptload.c

  Log Message:
  -----------
  [BOLT] Add writable segment for allocatable sections

The golang support creates 2 new data segments, one of them contains
relocations in PIC binaries, so the section must have writable rights.
Currently BOLT creates only one new segment that contains new sections
with RX rights, now also create RW segment if there are any new writable
sections were allocated during BOLT binary processing.

Vladislav Khmelevsky,
Advanced Software Technology Lab, Huawei

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




More information about the All-commits mailing list