From 26a48bb3a9c962068b83ff38b0818956c961da74 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Sun, 17 Jun 2012 07:28:29 +0000 Subject: [PATCH] * elf32-cris.c (cris_elf_relocate_section): : Handle references to thread common symbols. --- bfd/ChangeLog | 6 ++++++ bfd/elf32-cris.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 41e6264bc8f..39f5829224b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2012-06-17 Hans-Peter Nilsson + + * elf32-cris.c (cris_elf_relocate_section): + : Handle references to + thread common symbols. + 2012-06-13 Nick Clifton * elf32-arm.c (bfd_arm_get_mach_from_attributes): New function. diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index 1f7d20d44c6..3710d47b706 100644 --- a/bfd/elf32-cris.c +++ b/bfd/elf32-cris.c @@ -1877,7 +1877,8 @@ cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, return FALSE; } - if (!info->shared && (h == NULL || h->def_regular)) + if (!info->shared + && (h == NULL || h->def_regular || ELF_COMMON_DEF_P (h))) { /* Known contents of the GOT. */ bfd_vma off; -- 2.30.2