diff options
Diffstat (limited to 'bfd/elf32-score7.c')
-rw-r--r-- | bfd/elf32-score7.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-score7.c b/bfd/elf32-score7.c index ea0ccd04e9e..51a5fb106d7 100644 --- a/bfd/elf32-score7.c +++ b/bfd/elf32-score7.c @@ -497,8 +497,8 @@ score_elf_got15_reloc (bfd *abfd, arelent *reloc_entry, asymbol *symbol, bfd *output_bfd, char **error_message) { if ((symbol->flags & (BSF_GLOBAL | BSF_WEAK)) != 0 - || bfd_is_und_section (bfd_get_section (symbol)) - || bfd_is_com_section (bfd_get_section (symbol))) + || bfd_is_und_section (bfd_asymbol_section (symbol)) + || bfd_is_com_section (bfd_asymbol_section (symbol))) /* The relocation is against a global symbol. */ return bfd_elf_generic_reloc (abfd, reloc_entry, symbol, data, input_section, output_bfd, |