From 0cd8caff0ac9542a16aea5f8a020358bc9630def Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 4 Sep 2019 09:03:14 +0300 Subject: [PATCH] Define OS_TYPE and DATAEND for UWP targets (fix of commit 1471f940e9) * include/private/gcconfig.h [AARCH64 && MSWIN32] (OS_TYPE, DATAEND): Define macro; add TODO about GWW_VDB and MPROTECT_VDB. * include/private/gcconfig.h [ARM32 && MSWIN32] (OS_TYPE, DATAEND): Likewise. --- include/private/gcconfig.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 2dda9401..d9935d89 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -2357,6 +2357,13 @@ EXTERN_C_BEGIN void *switch_get_stack_bottom(void); # define STACKBOTTOM ((ptr_t)switch_get_stack_bottom()) # endif +# ifdef MSWIN32 /* UWP */ +# define OS_TYPE "MSWIN32" + /* TODO: Enable GWW_VDB and/or MPROTECT_VDB */ +# ifndef DATAEND +# define DATAEND /* not needed */ +# endif +# endif # ifdef NOSYS /* __data_start is usually defined in the target linker script. */ extern int __data_start[]; @@ -2487,6 +2494,13 @@ EXTERN_C_BEGIN void *n3ds_get_stack_bottom(void); # define STACKBOTTOM ((ptr_t)n3ds_get_stack_bottom()) # endif +# ifdef MSWIN32 /* UWP */ +# define OS_TYPE "MSWIN32" + /* TODO: Enable GWW_VDB and/or MPROTECT_VDB */ +# ifndef DATAEND +# define DATAEND /* not needed */ +# endif +# endif # ifdef NOSYS /* __data_start is usually defined in the target linker script. */ extern int __data_start[]; -- 2.40.0