[clang] [clang-tools-extra] [llvm] [MTE] Apply alignment / size in AsmPrinter rather than IR (PR #111918)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 12 07:11:47 PST 2024
================
@@ -808,6 +808,10 @@ void Verifier::visitGlobalValue(const GlobalValue &GV) {
"visibility must be dso_local!",
&GV);
+ if (GV.isTagged()) {
----------------
arichardson wrote:
Back in 2019 or so we had very similar issues in the CHERI downstream due to kernel linker sets. The FreeBSD Kernel extensively usess custom section with C identifiers (so you automatically get __start_<sec> and __stop_<sec> symbols and then iterates over those sections. Adding padding later in the pipeline means the existing loop increments could be wrong and you get incorrect initialization results or crashes.
https://github.com/llvm/llvm-project/pull/111918
More information about the llvm-commits
mailing list