diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-11-05 16:26:18 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-11-05 16:26:18 +0000 |
commit | e5e6b6c49f1fbca0b3fd9b58e98fa25116d9e438 (patch) | |
tree | 4d4216ec255829e0b96889ee66c9321ced9005b5 /winsup/cygwin/lib/dso_handle.c | |
parent | b8fd41f5df60b386cfa623ec12cd2f3840c39081 (diff) | |
download | cygnal-e5e6b6c49f1fbca0b3fd9b58e98fa25116d9e438.tar.gz cygnal-e5e6b6c49f1fbca0b3fd9b58e98fa25116d9e438.tar.bz2 cygnal-e5e6b6c49f1fbca0b3fd9b58e98fa25116d9e438.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/lib/dso_handle.c')
-rw-r--r-- | winsup/cygwin/lib/dso_handle.c | 12 |
1 files changed, 12 insertions, 0 deletions
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; |