diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-09-02 22:14:58 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-09-02 22:14:58 -0700 |
commit | f04bdfa7b261402bfa9dbdde58b2feb14becd8a3 (patch) | |
tree | c9a035f301990629b69850c58457a2b33f26dabe /bfd/elfxx-x86.c | |
parent | d47a80260cd52e800ffea7eaea366c34a31e663c (diff) | |
download | gdb-f04bdfa7b261402bfa9dbdde58b2feb14becd8a3.zip gdb-f04bdfa7b261402bfa9dbdde58b2feb14becd8a3.tar.gz gdb-f04bdfa7b261402bfa9dbdde58b2feb14becd8a3.tar.bz2 |
Initialize tls_get_addr for x86-64 in one place
* elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Initialize
tls_get_addr for x86-64 in one place.
Diffstat (limited to 'bfd/elfxx-x86.c')
-rw-r--r-- | bfd/elfxx-x86.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/elfxx-x86.c b/bfd/elfxx-x86.c index 874799e..cac451d 100644 --- a/bfd/elfxx-x86.c +++ b/bfd/elfxx-x86.c @@ -768,6 +768,7 @@ _bfd_x86_elf_link_hash_table_create (bfd *abfd) ret->dt_reloc_sz = DT_RELASZ; ret->dt_reloc_ent = DT_RELAENT; ret->got_entry_size = 8; + ret->tls_get_addr = "__tls_get_addr"; } if (ABI_64_P (abfd)) { @@ -777,7 +778,6 @@ _bfd_x86_elf_link_hash_table_create (bfd *abfd) ret->pointer_r_type = R_X86_64_64; ret->dynamic_interpreter = ELF64_DYNAMIC_INTERPRETER; ret->dynamic_interpreter_size = sizeof ELF64_DYNAMIC_INTERPRETER; - ret->tls_get_addr = "__tls_get_addr"; } else #endif @@ -791,7 +791,6 @@ _bfd_x86_elf_link_hash_table_create (bfd *abfd) ret->dynamic_interpreter = ELFX32_DYNAMIC_INTERPRETER; ret->dynamic_interpreter_size = sizeof ELFX32_DYNAMIC_INTERPRETER; - ret->tls_get_addr = "__tls_get_addr"; } else { |