[PATCH] D85649: [AArch64] PAC/BTI code generation for LLVM generated functions

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 15 11:37:29 PDT 2022


pcc added a comment.
Herald added a project: All.

In D85649#2281439 <https://reviews.llvm.org/D85649#2281439>, @chill wrote:

> It looks like the only value that makes sense is `Error` - any other policy (existing or not) would potentially lead to meaningfully different code generated with or without LTO.

It should have been (the currently non-existent) "Min" -- with "Error" we get different behavior at link time with and without LTO, as a mixture of BTI and non-BTI objects ought to disable BTI in the final linked object, instead of producing an error. The code generation should be controlled by the function attribute so you ought to get the same code generated with and without LTO.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85649



More information about the llvm-commits mailing list