Prevent a run time segmentation fault when stripping a corrupt binary.
[deliverable/binutils-gdb.git] / binutils / objcopy.c
index 198ba3a2071e1670f33c9888d30db1342fd54e01..0b218995a969bea9880f0b990f31c22935614c3c 100644 (file)
@@ -3250,7 +3250,9 @@ copy_relocations_in_section (bfd *ibfd, sec_ptr isection, void *obfdarg)
          for (i = 0; i < relcount; i++)
            {
              /* PR 17512: file: 9e907e0c.  */
-             if (relpp[i]->sym_ptr_ptr)
+             if (relpp[i]->sym_ptr_ptr
+                 /* PR 20096 */
+                 && * relpp[i]->sym_ptr_ptr)
                if (is_specified_symbol (bfd_asymbol_name (*relpp[i]->sym_ptr_ptr),
                                         keep_specific_htab))
                  temp_relpp [temp_relcount++] = relpp [i];
This page took 0.023346 seconds and 4 git commands to generate.