aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-07-05 21:32:13 +0000
committerIan Lance Taylor <ian@airs.com>1993-07-05 21:32:13 +0000
commit55636aa78906597ba20d54759247aa100334369d (patch)
tree21edf1c0eab3479d2d1aecb6c631625e9798c1fd /ld/ldlang.c
parent86fd58bf533db067529a54edd78b8ed97c1cfb7a (diff)
downloadgdb-55636aa78906597ba20d54759247aa100334369d.zip
gdb-55636aa78906597ba20d54759247aa100334369d.tar.gz
gdb-55636aa78906597ba20d54759247aa100334369d.tar.bz2
* ldlang.c (lang_relocate_globals): Skip indirect symbols, which
now have a non NULL srefs_chain.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 0fa4158..95580eb 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -1896,6 +1896,10 @@ lang_relocate_globals ()
{
asymbol *it;
+ /* Skip indirect symbols. */
+ if (lgs->flags & SYM_INDIRECT)
+ continue;
+
if (lgs->sdefs_chain)
{
it = *(lgs->sdefs_chain);