gdb: defer commit resume until all available events are consumed
[deliverable/binutils-gdb.git] / bfd / elf32-mips.c
index 9f8f2bdc260d3131b85bbfeb97cc03cc6ff79066..a585e427cc5131dcd61b7d276c1cc4dcef8296d6 100644 (file)
@@ -1,5 +1,5 @@
 /* MIPS-specific support for 32-bit ELF
-   Copyright (C) 1993-2019 Free Software Foundation, Inc.
+   Copyright (C) 1993-2020 Free Software Foundation, Inc.
 
    Most of the information added by Ian Lance Taylor, Cygnus Support,
    <ian@cygnus.com>.
@@ -2281,8 +2281,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.  */
@@ -2670,6 +2670,9 @@ mips_vxworks_final_write_processing (bfd *abfd)
 #define ELF_MAXPAGESIZE                        0x1000
 #define ELF_COMMONPAGESIZE             0x1000
 
+#undef ELF_TARGET_OS
+#define ELF_TARGET_OS                  is_vxworks
+
 #undef elf_backend_want_got_plt
 #define elf_backend_want_got_plt               1
 #undef elf_backend_want_plt_sym
This page took 0.024201 seconds and 4 git commands to generate.