From cf35638d431e230d51d54550e8a249e730264ea5 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 24 Sep 2010 12:14:26 +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-mips.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bfd/elfxx-mips.c') diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 1ee9289..a32a613 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -5282,7 +5282,7 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd, && h->root.def_dynamic && !h->root.def_regular && !h->has_static_relocs)) - && r_symndx != 0 + && r_symndx != STN_UNDEF && (h == NULL || h->root.root.type != bfd_link_hash_undefweak || ELF_ST_VISIBILITY (h->root.other) == STV_DEFAULT) @@ -7752,7 +7752,7 @@ _bfd_mips_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, case R_MIPS_TLS_LDM: if (r_type == R_MIPS_TLS_LDM) { - r_symndx = 0; + r_symndx = STN_UNDEF; h = NULL; } /* Fall through */ @@ -7778,7 +7778,7 @@ _bfd_mips_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, } else { - BFD_ASSERT (flag == GOT_TLS_LDM || r_symndx != 0); + BFD_ASSERT (flag == GOT_TLS_LDM || r_symndx != STN_UNDEF); if (!mips_elf_record_local_got_symbol (abfd, r_symndx, rel->r_addend, @@ -7918,7 +7918,7 @@ _bfd_mips_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, case R_MIPS_HIGHEST: /* Don't refuse a high part relocation if it's against no symbol (e.g. part of a compound relocation). */ - if (r_symndx == 0) + if (r_symndx == STN_UNDEF) break; /* R_MIPS_HI16 against _gp_disp is used for $gp setup, -- cgit v1.1