gcc/libphobos/libdruntime
Iain Buclaw 5dbab7b3f4 libphobos: Fix segfault at run-time when using custom Fibers (PR 98025)
When libphobos is configured with --enable-cet, this adds extra fields
to the Fiber class to support the ucontext_t fallback implementation.
These fields get omitted when compiling user code unless they also used
`-fversion=CET' to build their project, which resulted in data being
overwritten from within swapcontext().

On reviewing the ucontext_t definitions, it was found that the shadow
stack fields were missing, and the struct size didn't match up on X32.
This has been fixed in upstream druntime and merged down here.

Reviewed-on: https://github.com/dlang/druntime/pull/3293

libphobos/ChangeLog:

	PR d/98025
	* Makefile.in: Regenerate.
	* configure: Regenerate.
	* configure.ac (DCFG_ENABLE_CET): Substitute.
	* libdruntime/MERGE: Merge upstream druntime 0fe7974c.
	* libdruntime/Makefile.in: Regenerate.
	* libdruntime/core/thread.d: Import gcc.config.
	(class Fiber): Add ucontext_t fields when GNU_Enable_CET is true.
	* libdruntime/gcc/config.d.in (GNU_Enable_CET): Define.
	* src/Makefile.in: Regenerate.
	* testsuite/Makefile.in: Regenerate.
2020-11-27 21:27:14 +01:00
..
config MIPS/libphobos: Fix switchcontext.S assembly for MIPS I ISA 2020-10-12 19:09:13 +01:00
core libphobos: Fix segfault at run-time when using custom Fibers (PR 98025) 2020-11-27 21:27:14 +01:00
gc libphobos: Merge upstream druntime 94686651 2019-08-21 07:54:19 +00:00
gcc libphobos: Fix segfault at run-time when using custom Fibers (PR 98025) 2020-11-27 21:27:14 +01:00
rt libphobos: Merge upstream druntime d37ef985. 2020-11-27 21:27:13 +01:00
__entrypoint.di Update copyright years. 2020-01-01 12:51:42 +01:00
__main.di Update copyright years. 2020-01-01 12:51:42 +01:00
LICENSE
Makefile.am libphobos: Merge upstream druntime d37ef985. 2020-11-27 21:27:13 +01:00
Makefile.in libphobos: Fix segfault at run-time when using custom Fibers (PR 98025) 2020-11-27 21:27:14 +01:00
MERGE libphobos: Fix segfault at run-time when using custom Fibers (PR 98025) 2020-11-27 21:27:14 +01:00
object.d re PR d/90079 (SEGV in _aaKeys, _aaValues on 32-bit SPARC) 2019-04-23 15:19:55 +00:00