This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
mn10300 -mrelax fixes
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: 29 Jul 2003 03:18:15 -0300
- Subject: mn10300 -mrelax fixes
- Organization: GCC Team, Red Hat
mn10300-elf-ld -mrelax would crash because we were taking symbol
hashes from the wrong bfd. This patch fixes it. I'm checking it in.
Index: bfd/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* elf-m10300.c (mn10300_elf_relax_section): Take symbol hash table
from input_bfd.
Index: bfd/elf-m10300.c
===================================================================
RCS file: /cvs/uberbaum/bfd/elf-m10300.c,v
retrieving revision 1.37
diff -u -p -r1.37 elf-m10300.c
--- bfd/elf-m10300.c 10 Jul 2003 04:44:37 -0000 1.37
+++ bfd/elf-m10300.c 29 Jul 2003 06:15:59 -0000
@@ -2065,7 +2065,7 @@ mn10300_elf_relax_section (abfd, sec, li
symcount = (symtab_hdr->sh_size / sizeof (Elf32_External_Sym)
- symtab_hdr->sh_info);
- hashes = elf_sym_hashes (abfd);
+ hashes = elf_sym_hashes (input_bfd);
end_hashes = hashes + symcount;
for (; hashes < end_hashes; hashes++)
{
@@ -2283,7 +2283,7 @@ mn10300_elf_relax_section (abfd, sec, li
need insns deleted from their prologues. */
symcount = (symtab_hdr->sh_size / sizeof (Elf32_External_Sym)
- symtab_hdr->sh_info);
- hashes = elf_sym_hashes (abfd);
+ hashes = elf_sym_hashes (input_bfd);
end_hashes = hashes + symcount;
for (; hashes < end_hashes; hashes++)
{
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer