From 9bb351fd9cfb5adf3630f433486727808fe994e7 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Thu, 27 May 2004 04:07:41 +0000 Subject: [PATCH] * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within loop over hashes. --- bfd/ChangeLog | 5 +++++ bfd/elf-m10300.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a771b9afcd..c7562b67f4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2004-05-27 Alexandre Oliva + + * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within + loop over hashes. + 2004-05-26 Alan Modra * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE diff --git a/bfd/elf-m10300.c b/bfd/elf-m10300.c index c64d34f4e2..ba204f4093 100644 --- a/bfd/elf-m10300.c +++ b/bfd/elf-m10300.c @@ -2057,7 +2057,7 @@ mn10300_elf_relax_section (abfd, sec, link_info, again) 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); -- 2.34.1