[PATCH] D103202: [AIX] Add traceback ssp canary bit support
Jinsong Ji via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 27 06:58:15 PDT 2021
jsji added inline comments.
================
Comment at: llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp:2182
+ // the attributes are on.
+ return true;
+}
----------------
jsji wrote:
> hubert.reinterpretcast wrote:
> > A patch like this one would need rather more tests to demonstrate that the insertion of the canary word is in a position that is compatible with where the unwinder and other stack-frame-walking tools would look.
> I think this is chicken and egg issue: there is no SSP support in current libunwind support on AIX yet.
> I would prefer we enable this bits first, we can and will definitely do more test while enable this support in libunwind.
Also, since there is NO *ABI* definition of SSP canary word position, I don't think we should assume that it is the compiler's job to ensure the compatibility of canary word, libunwind can do a better job in ensuring the compatibility with legacy compiler in such case.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103202/new/
https://reviews.llvm.org/D103202
More information about the llvm-commits
mailing list