[all-commits] [llvm/llvm-project] 47d663: [llvm-profgen] Fix alignment in preferred based ca...
WenleiHe via All-commits
all-commits at lists.llvm.org
Wed Sep 29 23:05:26 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 47d66355ef9039a15b7265945e3deb331d7f9e05
https://github.com/llvm/llvm-project/commit/47d66355ef9039a15b7265945e3deb331d7f9e05
Author: Wenlei He <aktoon at gmail.com>
Date: 2021-09-29 (Wed, 29 Sep 2021)
Changed paths:
M llvm/tools/llvm-profgen/ProfiledBinary.cpp
Log Message:
-----------
[llvm-profgen] Fix alignment in preferred based calculation
We used the segment alignment in elf header to assume the loader alignment. However this is incorrect because loader alignment is always the same as page size. If segment needs to be aligned at load time, linker will set aligned address as virtual address in elf header.
Differential Revision: https://reviews.llvm.org/D110795
More information about the All-commits
mailing list