]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
tile: Mark __tls_get_addr in gc_mark_hook
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 18 Oct 2017 22:46:57 +0000 (15:46 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 18 Oct 2017 22:47:35 +0000 (15:47 -0700)
commit8e354058532d48dce19fdf0b2e0653609a69f19e
tree25e81366b620631167e4264b5cfda8a314460461
parent8dfa5d5a6389b7f0fdd7baaedc5f316f05debf63
tile: Mark __tls_get_addr in gc_mark_hook

TLS_GD_CALL relocations implicitly reference __tls_get_addr.  Since
elf_gc_mark_hook is called before check_relocs now, we need to call
_bfd_generic_link_add_one_symbol to mark __tls_get_addr for garbage
collection.

* elf32-tilepro.c (tilepro_elf_gc_mark_hook): Call
_bfd_generic_link_add_one_symbol to mark __tls_get_addr.
* elfxx-tilegx.c (tilegx_elf_gc_mark_hook): Likewise.
bfd/ChangeLog
bfd/elf32-tilepro.c
bfd/elfxx-tilegx.c