This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: bfd/elf-m10300.c: odd code
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: 27 May 2004 01:07:09 -0300
- Subject: Re: bfd/elf-m10300.c: odd code
- Organization: Red Hat Global Engineering Services Compiler Team
- References: <200405051757.i45HvZHM013141@greed.delorie.com>
Err... I thought this patch had gone in a while ago, but it doesn't
look like it. I'm going ahead and checking this in. Tested on
i686-pc-linux-gnu.
Index: bfd/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* elf-m10300.c (mn10300_elf_relax_section): Don't test isym within
loop over hashes.
Index: bfd/elf-m10300.c
===================================================================
RCS file: /cvs/src/src/bfd/elf-m10300.c,v
retrieving revision 1.49
diff -u -p -r1.49 elf-m10300.c
--- bfd/elf-m10300.c 27 Mar 2004 10:58:05 -0000 1.49
+++ bfd/elf-m10300.c 27 May 2004 03:53:25 -0000
@@ -2057,7 +2057,7 @@ mn10300_elf_relax_section (abfd, sec, li
if ((hash->root.root.type == bfd_link_hash_defined
|| hash->root.root.type == bfd_link_hash_defweak)
&& hash->root.root.u.def.section == section
- && ELF_ST_TYPE (isym->st_info) == STT_FUNC)
+ && hash->root.type == STT_FUNC)
compute_function_info (input_bfd, hash,
(hash)->root.root.u.def.value,
contents);
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}