Re: [RFC PATCH 12/17] gcc-plugins: objtool: Add plugin to detect switch table on arm64
From: Daniel Kiss
Date: Tue Feb 09 2021 - 11:31:40 EST
> On 3 Feb 2021, at 00:01, Nick Desaulniers <ndesaulniers@xxxxxxxxxx> wrote:
>
> I wonder if PAC or BTI also make this slightly more complex? PAC at
> least has implications for unwinders, IIUC.
BTI has effect on the jump target\case because a landing pad is required for each and every target.
As I see that would not hurt here.
The unwinder shall take care of the PAC signed return address if reads the LR from the stack.
DWARF contains an entry where the LR is got signed\authenticated.
I’m wondering would be simpler or possible to transform the DWARD to ORC.