]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Remove _Unwind_Frames_Increment
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Jul 2018 14:40:47 +0000 (14:40 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Jul 2018 14:40:47 +0000 (14:40 +0000)
commitd9a49803cc1d0b9ea7b58241a1fc6bec17d7ff38
tree4ed990f1e47d2033ac266546efb14492e60ea250
parent9c7661c85443eb3477f61a2318bd06b820525b91
i386: Remove _Unwind_Frames_Increment

CET kernel has been changed to place a restore token on shadow stack for
signal handler to enhance security.  It is usually transparent to user
programs since kernel will pop the restore token when signal handler
returns.  But when an exception is thrown from a signal handler, now
we need to remove _Unwind_Frames_Increment to pop the the restore token
from shadow stack.  Otherwise, we get

FAIL: g++.dg/torture/pr85334.C   -O0  execution test
FAIL: g++.dg/torture/pr85334.C   -O1  execution test
FAIL: g++.dg/torture/pr85334.C   -O2  execution test
FAIL: g++.dg/torture/pr85334.C   -O3 -g  execution test
FAIL: g++.dg/torture/pr85334.C   -Os  execution test
FAIL: g++.dg/torture/pr85334.C   -O2 -flto -fno-use-linker-plugin -flto-partition=none  execution test

PR libgcc/85334
* config/i386/shadow-stack-unwind.h (_Unwind_Frames_Increment):
Removed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263030 138bc75d-0d04-0410-961f-82ee72b054a4
libgcc/ChangeLog
libgcc/config/i386/shadow-stack-unwind.h