From 02865b8e1845472cb19f85af0811745e5a2e2392 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Wed, 17 Dec 2008 02:31:16 +0000 Subject: [PATCH] (cris_elf_relocate_section) : Add missing gate h != NULL for h->def_regular test. --- bfd/ChangeLog | 2 ++ bfd/elf32-cris.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 40678eea71e..3d7241afa07 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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) : Add missing + gate h != NULL for h->def_regular test. 2008-12-15 Hans-Peter Nilsson diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index 2f6b4d86a1e..1f4b0ddda6b 100644 --- a/bfd/elf32-cris.c +++ b/bfd/elf32-cris.c @@ -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; -- 2.30.2