[all-commits] [llvm/llvm-project] 82ef86: [BOLT] Set IsRelro section attribute based on PT_G...
Amir Ayupov via All-commits
all-commits at lists.llvm.org
Tue Jun 20 20:44:32 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 82ef86c194cadd018349df68b4da6db110fdecb4
https://github.com/llvm/llvm-project/commit/82ef86c194cadd018349df68b4da6db110fdecb4
Author: Amir Ayupov <aaupov at fb.com>
Date: 2023-06-20 (Tue, 20 Jun 2023)
Changed paths:
M bolt/include/bolt/Core/BinarySection.h
M bolt/include/bolt/Rewrite/RewriteInstance.h
M bolt/lib/Rewrite/RewriteInstance.cpp
A bolt/test/X86/pt_gnu_relro.s
Log Message:
-----------
[BOLT] Set IsRelro section attribute based on PT_GNU_RELRO segment
Handle PT_GNU_RELRO segment in accordance with Linux Standard Base spec
chapter 12:
> PT_GNU_RELRO
> The array element specifies the location and size of a segment which may
> be made *read-only* after relocations have been processed.
Perform a readelf-style mapping check between this segment and sections,
set `IsRelro` section attribute.
Reviewed By: #bolt, maksfb
Differential Revision: https://reviews.llvm.org/D152944
More information about the All-commits
mailing list