aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-cris.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2008-12-17 02:31:16 +0000
committerHans-Peter Nilsson <hp@axis.com>2008-12-17 02:31:16 +0000
commit02865b8e1845472cb19f85af0811745e5a2e2392 (patch)
tree594957af2e1a9ce509fb60c31b0c21d396ea885e /bfd/elf32-cris.c
parentd179004260aab534754a14c82b91dd95baec7892 (diff)
downloadgdb-02865b8e1845472cb19f85af0811745e5a2e2392.zip
gdb-02865b8e1845472cb19f85af0811745e5a2e2392.tar.gz
gdb-02865b8e1845472cb19f85af0811745e5a2e2392.tar.bz2
(cris_elf_relocate_section) <R_CRIS_8, R_CRIS_16, R_CRIS_32>: Add missing
gate h != NULL for h->def_regular test.
Diffstat (limited to 'bfd/elf32-cris.c')
-rw-r--r--bfd/elf32-cris.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index 2f6b4d8..1f4b0dd 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;