aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-01-15 22:38:22 +0000
committerIan Lance Taylor <ian@airs.com>1996-01-15 22:38:22 +0000
commit0bc9a7d2fb1ea14761ecb80dd284ed4c5331743d (patch)
treebbf4433199ac10ce183d75e788f5dac9ea221f67 /ld/emultempl
parent20ab764e38ea91a83aa93a6ea057d23675d8527c (diff)
downloadgdb-0bc9a7d2fb1ea14761ecb80dd284ed4c5331743d.zip
gdb-0bc9a7d2fb1ea14761ecb80dd284ed4c5331743d.tar.gz
gdb-0bc9a7d2fb1ea14761ecb80dd284ed4c5331743d.tar.bz2
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
Don't make a shared library because of an undefined reference to __GLOBAL_OFFSET_TABLE_.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/sunos.em5
1 files changed, 3 insertions, 2 deletions
diff --git a/ld/emultempl/sunos.em b/ld/emultempl/sunos.em
index a2eebc7..e1c6983 100644
--- a/ld/emultempl/sunos.em
+++ b/ld/emultempl/sunos.em
@@ -617,7 +617,8 @@ gld${EMULATION_NAME}_before_allocation ()
if (h->type == bfd_link_hash_undefined
&& h->u.undef.abfd != NULL
&& (h->u.undef.abfd->flags & DYNAMIC) == 0
- && strcmp (h->root.string, "__DYNAMIC") != 0)
+ && strcmp (h->root.string, "__DYNAMIC") != 0
+ && strcmp (h->root.string, "__GLOBAL_OFFSET_TABLE_") != 0)
{
find_assign = h->root.string;
found_assign = false;
@@ -800,7 +801,7 @@ gld${EMULATION_NAME}_find_exp_assignment (exp)
break;
case etree_trinary:
- gld${EMULATION_NAME}_find_exp_assignment (exp->trinary.lhs);
+ gld${EMULATION_NAME}_find_exp_assignment (exp->trinary.cond);
gld${EMULATION_NAME}_find_exp_assignment (exp->trinary.lhs);
gld${EMULATION_NAME}_find_exp_assignment (exp->trinary.rhs);
break;