From 5f22672a0dbbe71da39e681654f10908b7782ffa Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 24 Sep 2010 12:14:23 +0000 Subject: 2010-09-24 Thomas Schwinge * elf32-arm.c, elf32-cris.c, elf32-hppa.c, elf32-i370.c, elf32-m32r.c, elf32-m68k.c, elf32-microblaze.c, elf32-ppc.c, elf32-score.c, elf32-score7.c, elf32-sh.c, elf32-vax.c, elf32-xtensa.c, elf64-alpha.c, elf64-hppa.c, elf64-mips.c, elf64-ppc.c, elf64-sparc.c, elfcode.h, elflink.c, elfxx-ia64.c, elfxx-mips.c: Use STN_UNDEF when referring to the zero symbol index. --- bfd/elfxx-ia64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bfd/elfxx-ia64.c') diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index c8588b9751..d780909838 100644 --- a/bfd/elfxx-ia64.c +++ b/bfd/elfxx-ia64.c @@ -4695,7 +4695,7 @@ elfNN_ia64_relocate_section (bfd *output_bfd, case R_IA64_DIR64LSB: /* Install a dynamic relocation for this reloc. */ if ((dynamic_symbol_p || info->shared) - && r_symndx != 0 + && r_symndx != STN_UNDEF && (input_section->flags & SEC_ALLOC) != 0) { unsigned int dyn_r_type; @@ -4924,7 +4924,7 @@ elfNN_ia64_relocate_section (bfd *output_bfd, case R_IA64_PCREL64MSB: case R_IA64_PCREL64LSB: /* Install a dynamic relocation for this reloc. */ - if (dynamic_symbol_p && r_symndx != 0) + if (dynamic_symbol_p && r_symndx != STN_UNDEF) { BFD_ASSERT (srel != NULL); -- cgit v1.2.1