]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
authorRichard Henderson <rth@redhat.com>
Tue, 13 Feb 2001 23:11:09 +0000 (23:11 +0000)
committerRichard Henderson <rth@redhat.com>
Tue, 13 Feb 2001 23:11:09 +0000 (23:11 +0000)
        and not user provided.

bfd/ChangeLog
bfd/elfxx-ia64.c

index c478293c16db1bef27ddeef4bab15b555c9083f3..69871792ddc4b4ae2f5786ca0d1f792c3dc6325d 100644 (file)
@@ -1,3 +1,8 @@
+2001-02-13  Richard Henderson  <rth@redhat.com>
+
+       * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
+       and not user provided.
+
 2001-02-13  Alan Modra  <alan@linuxcare.com.au>
 
        * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$.  If
index 90244640138006534952c8f09c3b6617273bfc4a..200b8da19493f2ca1d4b1189481b2245d955e9d3 100644 (file)
@@ -3153,6 +3153,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