[PATCH] D127220: [BOLT][AArch64] Preserve in text object alignment

Denis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 10 13:43:58 PDT 2022


treapster added subscribers: rafaelauler, treapster.
treapster added a comment.

I want to note that the case of openSSL is not as simple as "the object is aligned on 512 and has the size of 512 bytes." The size of iotas function which @rafaelauler referenced above is 192 bytes, and the assumption made by the code is not that it **begins** at 0x100-aligned address, but that it **ends** there. Thus, the patch in its current form does not fix the issue. To handle this case we have to estimate island size and then emit it at such address that the end of it has the same alignment as in the input binary.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127220/new/

https://reviews.llvm.org/D127220



More information about the llvm-commits mailing list