[PATCH] D121392: [BOLT] Set cold sections alignment explicitly

Rafael Auler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 11 17:47:07 PST 2022


rafauler added inline comments.


================
Comment at: bolt/lib/Core/BinaryEmitter.cpp:294-296
+    // Set section alignment to at least maximum possible object alignment.
+    // We need this to support LongJmp and other passes that calculates
+    // tentative layout.
----------------
Why is this necessary? Is it possible to write a testcase that shows where we are getting the layout wrong?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D121392



More information about the llvm-commits mailing list