[PATCH 0/2] Fix two issues in gcfg and scfi

Indu Bhagat indu.bhagat@oracle.com
Thu Mar 28 23:43:41 GMT 2024


Hi,

While working on extending SCFI for aarch64, I ran into some bugs in the
existing GCFG creation and SCFI state management code in GAS.  This
patch series fixes those (two) issues.

The two patches are quite independent of each other.  They are being sent
together only to hopefully save some testing and reviewing cycles.

Testing Notes:
 - Regression tested native builds on x86_64 and aarch64.

Thanks,
Indu Bhagat (2):
  gas: gcfg: add_bb_at_ginsn must return root_bb
  gas: scfi: bugfixes for SCFI state propagation

 gas/ginsn.c                                   | 95 ++++++++++++++-----
 gas/scfi.c                                    | 20 ++--
 gas/testsuite/gas/scfi/x86_64/scfi-cfg-4.d    | 43 +++++++++
 gas/testsuite/gas/scfi/x86_64/scfi-cfg-4.l    |  2 +
 gas/testsuite/gas/scfi/x86_64/scfi-cfg-4.s    | 42 ++++++++
 gas/testsuite/gas/scfi/x86_64/scfi-cfg-5.d    | 39 ++++++++
 gas/testsuite/gas/scfi/x86_64/scfi-cfg-5.l    |  2 +
 gas/testsuite/gas/scfi/x86_64/scfi-cfg-5.s    | 32 +++++++
 gas/testsuite/gas/scfi/x86_64/scfi-x86-64.exp |  4 +
 9 files changed, 245 insertions(+), 34 deletions(-)
 create mode 100644 gas/testsuite/gas/scfi/x86_64/scfi-cfg-4.d
 create mode 100644 gas/testsuite/gas/scfi/x86_64/scfi-cfg-4.l
 create mode 100644 gas/testsuite/gas/scfi/x86_64/scfi-cfg-4.s
 create mode 100644 gas/testsuite/gas/scfi/x86_64/scfi-cfg-5.d
 create mode 100644 gas/testsuite/gas/scfi/x86_64/scfi-cfg-5.l
 create mode 100644 gas/testsuite/gas/scfi/x86_64/scfi-cfg-5.s

-- 
2.43.0



More information about the Binutils mailing list