diff options
Diffstat (limited to 'boehm-gc/dyn_load.c')
-rw-r--r-- | boehm-gc/dyn_load.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/boehm-gc/dyn_load.c b/boehm-gc/dyn_load.c index 053532a31b4..d0f523c3400 100644 --- a/boehm-gc/dyn_load.c +++ b/boehm-gc/dyn_load.c @@ -284,6 +284,11 @@ void GC_register_dynamic_libraries() static struct link_map * GC_FirstDLOpenedLinkMap() { +#ifdef __GNUC__ + /* On some Linux systems, `_DYNAMIC' will not be defined when a + static link is done. */ +# pragma weak _DYNAMIC +#endif extern ElfW(Dyn) _DYNAMIC[]; ElfW(Dyn) *dp; struct r_debug *r; |