aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-ia64.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-02-13 23:08:09 +0000
committerRichard Henderson <rth@redhat.com>2001-02-13 23:08:09 +0000
commitb4adccfd55af25705da3ace48c229d89be3f877a (patch)
tree0cfd72cd2157c3706ea09306ab6d4b44bdf2f2ec /bfd/elfxx-ia64.c
parent30c3c13a9263aa49b6075d22f1e0bfc40786ff10 (diff)
downloadgdb-b4adccfd55af25705da3ace48c229d89be3f877a.zip
gdb-b4adccfd55af25705da3ace48c229d89be3f877a.tar.gz
gdb-b4adccfd55af25705da3ace48c229d89be3f877a.tar.bz2
* elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
and not user provided.
Diffstat (limited to 'bfd/elfxx-ia64.c')
-rw-r--r--bfd/elfxx-ia64.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c
index fc9c226..09982ef 100644
--- a/bfd/elfxx-ia64.c
+++ b/bfd/elfxx-ia64.c
@@ -3157,6 +3157,13 @@ elfNN_ia64_final_link (abfd, info)
}
_bfd_set_gp_value (abfd, gp_val);
+
+ if (gp)
+ {
+ gp->root.type = bfd_link_hash_defined;
+ gp->root.u.def.value = gp_val;
+ gp->root.u.def.section = bfd_abs_section_ptr;
+ }
}
/* If we're producing a final executable, we need to sort the contents