Check reloc against IFUNC symbol only with dynamic symbols
[deliverable/binutils-gdb.git] / bfd / elf32-rx.c
index 004d7c2dc87fe4ceea454dc53550ad241b012c1b..754eae1d527c87b4975f466730d47cd0cabb7d7b 100644 (file)
@@ -1,5 +1,5 @@
 /* Renesas RX specific support for 32-bit ELF.
-   Copyright (C) 2008-2015 Free Software Foundation, Inc.
+   Copyright (C) 2008-2016 Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
 
@@ -3229,6 +3229,8 @@ rx_elf_object_p (bfd * abfd)
 
          if (phdr[i].p_filesz
              && phdr[i].p_offset <= (bfd_vma) sec->sh_offset
+             && sec->sh_size > 0
+             && sec->sh_type != SHT_NOBITS
              && (bfd_vma)sec->sh_offset <= phdr[i].p_offset + (phdr[i].p_filesz - 1))
            {
              /* Found one!  The difference between the two addresses,
This page took 0.035442 seconds and 4 git commands to generate.