Introduce program_space::add_objfile
[deliverable/binutils-gdb.git] / bfd / elfn32-mips.c
index 58d66ce63cd4940a33f55e783a0435830c4f926b..8927e9825bde7483c07532c0062f087877d5a47c 100644 (file)
@@ -3841,8 +3841,8 @@ mips_elf_sym_is_global (bfd *abfd ATTRIBUTE_UNUSED, asymbol *sym)
     return (sym->flags & BSF_SECTION_SYM) == 0;
   else
     return ((sym->flags & (BSF_GLOBAL | BSF_WEAK | BSF_GNU_UNIQUE)) != 0
-           || bfd_is_und_section (bfd_get_section (sym))
-           || bfd_is_com_section (bfd_get_section (sym)));
+           || bfd_is_und_section (bfd_asymbol_section (sym))
+           || bfd_is_com_section (bfd_asymbol_section (sym)));
 }
 \f
 /* Set the right machine number for a MIPS ELF file.  */
This page took 0.025837 seconds and 4 git commands to generate.