This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
tweak elf32_hppa .got allocation.
- To: binutils at sources dot redhat dot com
- Subject: tweak elf32_hppa .got allocation.
- From: Alan Modra <amodra at bigpond dot net dot au>
- Date: Tue, 5 Jun 2001 14:10:04 +0930
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