]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elfn32-mips.c
Re: asan: mips_gprel_reloc segfault
[thirdparty/binutils-gdb.git] / bfd / elfn32-mips.c
index 1ae51a4648ce3989fe8bc3e8d86ee0a54a00a5e4..07b753f0cc1e09fd96f99cb1973de9daac5a8f7a 100644 (file)
@@ -3254,8 +3254,7 @@ static bfd_reloc_status_type
 mips_elf_final_gp (bfd *output_bfd, asymbol *symbol, bool relocatable,
                   char **error_message, bfd_vma *pgp)
 {
-  if (bfd_is_und_section (symbol->section)
-      && ! relocatable)
+  if (output_bfd == NULL)
     {
       *pgp = 0;
       return bfd_reloc_undefined;