From e5e6b6c49f1fbca0b3fd9b58e98fa25116d9e438 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 5 Nov 2014 16:26:18 +0000 Subject: * lib/atexit.c (atexit): Check for being linked into the executable. If so, call __cxa_atexit with NULL DSO handle. Explain why. * lib/dso_handle.c: New file providing fallback __dso_handle. --- winsup/cygwin/lib/dso_handle.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 winsup/cygwin/lib/dso_handle.c (limited to 'winsup/cygwin/lib/dso_handle.c') diff --git a/winsup/cygwin/lib/dso_handle.c b/winsup/cygwin/lib/dso_handle.c new file mode 100644 index 000000000..c3069b732 --- /dev/null +++ b/winsup/cygwin/lib/dso_handle.c @@ -0,0 +1,12 @@ +/* dso_handle.c: Provide default __dso_handle. + + Copyright 2014 Red Hat, Inc. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file "CYGWIN_LICENSE" for +details. */ + +extern void *__ImageBase; +void *__dso_handle = &__ImageBase; -- cgit v1.2.3