pcc added a comment.

In D138337#3972138 <https://reviews.llvm.org/D138337#3972138>, @samitolvanen 
wrote:
> In D138337#3972009 <https://reviews.llvm.org/D138337#3972009>, @pcc wrote:
>
>> Can't this be implicit if LTO is being used?
>
> I would prefer to keep this behind a flag (similarly to `-mibt-seal`), so we 
> can better control when and where the optimization enabled. For example, 
> enabling this implicitly would currently break LTO+KCFI kernel builds as the 
> kernel has global functions that are not address-taken in C code, but still 
> end up being indirectly called because their addresses were taken in assembly 
> code that wasn't visible to LTO (e.g. arm64's `alternative_cb` mechanism).

Isn't that just a bug in the optimization? It shouldn't be applying this to 
symbols where `VisibleToRegularObj` is set.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138337

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to