https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95680

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>:

https://gcc.gnu.org/g:285d81be9725acc36dc8eca48d4df506cd5e6f6f

commit r11-3047-g285d81be9725acc36dc8eca48d4df506cd5e6f6f
Author: Iain Buclaw <ibuc...@gdcproject.org>
Date:   Mon Sep 7 15:43:04 2020 +0200

    libphobos: libdruntime doesn't support shadow stack (PR95680)

    Rather than implementing support within D runtime itself, use libc
    getcontext/swapcontext functions if CET is enabled.

    Removes whatever CET support was in the switchContext routine for x86
    D runtime, along with setting version AsmExternal, so that the fallback
    ucontext_t implementation is used, which is capable of doing shadow
    stack handling.

    libphobos/ChangeLog:

            PR d/95680
            * Makefile.in: Regenerate.
            * configure: Regenerate.
            * configure.ac (DCFG_ENABLE_CET): Substitute.
            * libdruntime/Makefile.in: Regenerate.
            * libdruntime/config/x86/switchcontext.S: Remove CET support code.
            * libdruntime/core/thread.d: Import gcc.config.  Don't set version
            AsmExternal when GNU_Enable_CET is true.
            * libdruntime/gcc/config.d.in (GNU_Enable_CET): Define.
            * src/Makefile.in: Regenerate.
            * testsuite/Makefile.in: Regenerate.

Reply via email to