This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

tweak elf32_hppa .got allocation.



Um, we allocated too much space when indirect syms were involved.

bfd/ChangeLog
	* elf32_hppa.c (allocate_plt_and_got): Skip indirect and warning syms.

Index: bfd/elf32-hppa.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-hppa.c,v
retrieving revision 1.37
diff -u -p -r1.37 elf32-hppa.c
--- elf32-hppa.c	2001/06/03 02:41:58	1.37
+++ elf32-hppa.c	2001/06/05 00:03:54
@@ -2077,6 +2077,10 @@ allocate_plt_and_got (h, inf)
   struct elf32_hppa_link_hash_table *hplink;
   asection *s;
 
+  if (h->root.type == bfd_link_hash_indirect
+      || h->root.type == bfd_link_hash_warning)
+    return true;
+
   info = (struct bfd_link_info *) inf;
   hplink = hppa_link_hash_table (info);
   if ((hplink->root.dynamic_sections_created

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]