+2019-12-09 Jozef Lawrynowicz <jozef.l@mittosystems.com>
+
+ * crtstuff.c (__do_global_dtors_aux): Check if USE_EH_FRAME_REGISTRY is
+ defined instead of its value.
+
2019-12-09 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* crtstuff.c (__do_global_dtors_aux): Wrap in #if so it's only defined
This routine does not need to be run if none of the following clauses are
true, as it will not do anything, so can be removed. */
#if defined(CRTSTUFFS_O) || !defined(FINI_ARRAY_SECTION_ASM_OP) \
- || USE_TM_CLONE_REGISTRY || USE_EH_FRAME_REGISTRY
+ || USE_TM_CLONE_REGISTRY || defined(USE_EH_FRAME_REGISTRY)
static void __attribute__((used))
__do_global_dtors_aux (void)
{
__do_global_dtors_aux_1)
#endif
#endif /* defined(CRTSTUFFS_O) || !defined(FINI_ARRAY_SECTION_ASM_OP)
- || defined(USE_TM_CLONE_REGISTRY) || defined(USE_EH_FRAME_REGISTRY) */
+ || USE_TM_CLONE_REGISTRY || defined(USE_EH_FRAME_REGISTRY) */
#if defined(USE_EH_FRAME_REGISTRY) || USE_TM_CLONE_REGISTRY
/* Stick a call to __register_frame_info into the .init section. For some