aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCupertino Miranda <cmiranda@synopsys.com>2018-11-09 15:49:29 +0000
committerCupertino Miranda <cmiranda@synopsys.com>2018-11-09 15:53:30 +0000
commit20b233dc4872717a845066b0362582ea4f483df7 (patch)
tree9296d3c880ed554c88b156948ecf8beeb4aa53b9
parentd07b621f4cc585607c7eee7cc58ce54a7dde52f5 (diff)
downloadbinutils-20b233dc4872717a845066b0362582ea4f483df7.zip
binutils-20b233dc4872717a845066b0362582ea4f483df7.tar.gz
binutils-20b233dc4872717a845066b0362582ea4f483df7.tar.bz2
Fixed warning from previous patch. Added Changelog.
-rw-r--r--bfd/ChangeLog13
-rw-r--r--bfd/elf32-arc.c3
2 files changed, 15 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 216271a..8dad3ea 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,16 @@
+2018-11-09 Cupertino Miranda <cmiranda@synopsys.com>
+
+ * arc-got.h (arc_got_entry_type_for_reloc): Changed to
+ correct static TLS relocs.
+ * elf32-arc.c (elf_arc_check_relocs): Introduced warning to
+ TLS relocs which require -fPIC.
+ (arc_create_forced_local_got_entries_for_tls): Created.
+ Traverses list of GOT entries to be resolved statically
+ when needed.
+ (elf_arc_finish_dynamic_sections): Changed. Calls
+ arc_create_forced_local_got_entries_for_tls for each known
+ possibly GOT symbol.
+
2018-11-09 rhn <sowaac.rhn@porcupinefactory.org>
PR 23699
diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c
index e96b3f8..69d8f6e 100644
--- a/bfd/elf32-arc.c
+++ b/bfd/elf32-arc.c
@@ -2531,7 +2531,8 @@ arc_create_forced_local_got_entries_for_tls (struct bfd_hash_entry *bh,
while (list != NULL)
{
create_got_dynrelocs_for_single_entry (list, tmp->output_bfd,
- tmp->info, h);
+ tmp->info,
+ (struct elf_link_hash_entry *) h);
list = list->next;
}
}