(cris_elf_relocate_section) <R_CRIS_8, R_CRIS_16, R_CRIS_32>: Add missing
authorHans-Peter Nilsson <hp@axis.com>
Wed, 17 Dec 2008 02:31:16 +0000 (02:31 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Wed, 17 Dec 2008 02:31:16 +0000 (02:31 +0000)
gate h != NULL for h->def_regular test.

bfd/ChangeLog
bfd/elf32-cris.c

index 40678eea71e4a873ea7183b0a99707d2d51ead55..3d7241afa079571abcf5f337c9311ea8bcacc84b 100644 (file)
@@ -2,6 +2,8 @@
 
        * elf32-cris.c (elf_cris_copy_indirect_symbol): Return without
        action for symbols other than bfd_link_hash_indirect.
+       (cris_elf_relocate_section) <R_CRIS_8, R_CRIS_16, R_CRIS_32>: Add missing
+       gate h != NULL for h->def_regular test.
 
 2008-12-15  Hans-Peter Nilsson  <hp@axis.com>
 
index 2f6b4d86a1eacb9d4c52350e07b89bdd22cd3e91..1f4b0ddda6b5ac21d47e82a50fa3ec03f1c0cf66 100644 (file)
@@ -1494,7 +1494,7 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
                   && r_type != R_CRIS_16_PCREL
                   && r_type != R_CRIS_32_PCREL)
                  || (!info->symbolic
-                     || !h->def_regular)))
+                     || (h != NULL && !h->def_regular))))
            {
              Elf_Internal_Rela outrel;
              bfd_byte *loc;
This page took 0.027908 seconds and 4 git commands to generate.