diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2010-09-24 12:14:26 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2010-09-24 12:14:26 +0000 |
commit | cf35638d431e230d51d54550e8a249e730264ea5 (patch) | |
tree | eed3fbc4ab7982aac3fe5f38bb85e16bc80410d3 /bfd/elf32-m68k.c | |
parent | 2c2fa401c554831bacec9c920678ddda8ce69519 (diff) | |
download | gdb-cf35638d431e230d51d54550e8a249e730264ea5.zip gdb-cf35638d431e230d51d54550e8a249e730264ea5.tar.gz gdb-cf35638d431e230d51d54550e8a249e730264ea5.tar.bz2 |
2010-09-24 Thomas Schwinge <thomas@codesourcery.com>
* 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.
Diffstat (limited to 'bfd/elf32-m68k.c')
-rw-r--r-- | bfd/elf32-m68k.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c index 7323612..8d1ee7f 100644 --- a/bfd/elf32-m68k.c +++ b/bfd/elf32-m68k.c @@ -4034,7 +4034,7 @@ elf_m68k_relocate_section (output_bfd, info, input_bfd, input_section, case R_68K_PC16: case R_68K_PC32: if (info->shared - && r_symndx != 0 + && r_symndx != STN_UNDEF && (input_section->flags & SEC_ALLOC) != 0 && (h == NULL || ELF_ST_VISIBILITY (h->other) == STV_DEFAULT @@ -4169,7 +4169,7 @@ elf_m68k_relocate_section (output_bfd, info, input_bfd, input_section, return FALSE; } - if (r_symndx != 0 + if (r_symndx != STN_UNDEF && r_type != R_68K_NONE && (h == NULL || h->root.type == bfd_link_hash_defined |