[PATCH, GCC, AArch64] Fix a couple of bugs in BTI
Sudakshina Das
Sudi.Das@arm.com
Thu Feb 21 13:34:00 GMT 2019
Hi
While doing more testing I found a couple of issues with my BTI patches.
This patch fixes them:
1) Remove a reference to return address key. The original patch was
written based on a different not yet committed patch ([PATCH
3/3][GCC][AARCH64] Add support for pointer authentication B key) and I
missed out on cleaning this up. This is hidden behind the configuration
option and thus went unnoticed.
2) Add a missed case for adding the BTI instruction in thunk functions.
Bootstrapped on aarch64-none-linux-gnu and regression tested on
aarch64-none-elf with configuration turned on.
gcc/ChangeLog:
2019-xx-xx Sudakshina Das <sudi.das@arm.com>
* config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
instruction if enabled.
(aarch64_override_options): Remove reference to return address
key.
Is this ok for trunk?
Sudi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bti-bug-fix.diff
Type: text/x-patch
Size: 742 bytes
Desc: bti-bug-fix.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190221/7813de22/attachment.bin>
More information about the Gcc-patches
mailing list