summaryrefslogtreecommitdiff
path: root/boehm-gc/dyn_load.c
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-26 14:15:05 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-26 14:15:05 +0000
commit41e6be0dbfb73bfa610c4a62cb2b3f33514dd46b (patch)
tree419bf5af5475ca11cc989d4c67ec026cfeb18980 /boehm-gc/dyn_load.c
parentbfc04c7b1c5c42e6645325bfdfb883afd5efefb9 (diff)
downloadgcc-41e6be0dbfb73bfa610c4a62cb2b3f33514dd46b.tar.gz
libtoolized GC library. See ChangeLog for details.
Also a couple bug fixes: * dyn_load.c (GC_FirstDLOpenedLinkMap): Declare _DYNAMIC as `weak'. * misc.c (GC_init_inner): If QUICK_THREADS defined, compute GC_stackbottom. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26650 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc/dyn_load.c')
-rw-r--r--boehm-gc/dyn_load.c5
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;