[PATCH v2 3/4] aarch64 DWARF: add new CFI directive for PAuth_LR

Jan Beulich jbeulich@suse.com
Wed Dec 11 07:10:39 GMT 2024


On 10.12.2024 16:12, Matthieu Longo wrote:
> This patch adds a new CFI directive (cfi_negate_ra_state_with_pc) which
> set an additional bit in the RA state to inform that RA was signed with
> SP but also PC as an additional diversifier.
> 
> RA state | Description
> 0b00     | Return address not signed (default if no cfi_negate_ra_state*)
> 0b01     | Return address signed with SP (cfi_negate_ra_state)
> 0b10     | Invalid state
> 0b11     | Return address signed with SP+PC (cfi_negate_ra_state_with_pc)
> ---
>  bfd/elf-eh-frame.c |  1 +
>  binutils/dwarf.c   |  5 +++++
>  gas/dw2gencfi.c    | 10 ++++++++++
>  gas/scfidw2gen.c   |  1 +
>  include/dwarf2.def |  2 ++
>  5 files changed, 19 insertions(+)

LGTM, but wants checking by Indu and perhaps also Richard.

Jan


More information about the Binutils mailing list