]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: Support x32 and IBT in heap trampoline
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 13 Feb 2024 16:40:52 +0000 (08:40 -0800)
committerH.J. Lu <(no_default)>
Wed, 14 Feb 2024 19:56:26 +0000 (11:56 -0800)
commit67ce5c97167a60cb845b9f3f55186c00fc5df078
treec59fdc6ba64ad085335ed824c1b2b45ca454a340
parent2c2f57e4158924467afbf4c2fd3938e507287dab
x86: Support x32 and IBT in heap trampoline

Add x32 and IBT support to x86 heap trampoline implementation with a
testcase.

2024-02-13  Jakub Jelinek  <jakub@redhat.com>
    H.J. Lu  <hjl.tools@gmail.com>

libgcc/

PR target/113855
* config/i386/heap-trampoline.c (trampoline_insns): Add IBT
support and pad to the multiple of 4 bytes.  Use movabsq
instead of movabs in comments.  Add -mx32 variant.

gcc/testsuite/

PR target/113855
* gcc.dg/heap-trampoline-1.c: New test.
* lib/target-supports.exp (check_effective_target_heap_trampoline):
New.
gcc/testsuite/gcc.dg/heap-trampoline-1.c [new file with mode: 0644]
gcc/testsuite/lib/target-supports.exp
libgcc/config/i386/heap-trampoline.c