aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-09-02 13:05:49 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-09-02 13:05:49 -0700
commit2926eb2c326c625f54db61796fbe034b31f0958f (patch)
tree29963c41d9149d95d7ede5b4c7d7ed0bb0854c59
parent92c10f5f61e8342eda76fb6927dcc1c885eda96a (diff)
downloadgdb-2926eb2c326c625f54db61796fbe034b31f0958f.zip
gdb-2926eb2c326c625f54db61796fbe034b31f0958f.tar.gz
gdb-2926eb2c326c625f54db61796fbe034b31f0958f.tar.bz2
x86: Rearrange fields and update comments
* elfxx-x86.h (elf_x86_link_hash_table): Rearrange fields and update comments.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elfxx-x86.h17
2 files changed, 14 insertions, 8 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1058a8b..c9a78ce 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2017-09-02 H.J. Lu <hongjiu.lu@intel.com>
+ * elfxx-x86.h (elf_x86_link_hash_table): Rearrange fields and
+ update comments.
+
+2017-09-02 H.J. Lu <hongjiu.lu@intel.com>
+
* elf32-i386.c (elf_i386_size_dynamic_sections): Set
sgotplt_jump_table_size with elf_x86_compute_jump_table_size.
diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h
index 00d38de..8b99835 100644
--- a/bfd/elfxx-x86.h
+++ b/bfd/elfxx-x86.h
@@ -286,12 +286,6 @@ struct elf_x86_link_hash_table
htab_t loc_hash_table;
void * loc_hash_memory;
- /* The offset into splt of the PLT entry for the TLS descriptor
- resolver. Special values are 0, if not necessary (or not found
- to be necessary yet), and -1 if needed but not determined
- yet. */
- bfd_vma tlsdesc_plt;
-
/* The offset into sgot of the GOT entry used by the PLT entry
above. */
bfd_vma tlsdesc_got;
@@ -305,7 +299,8 @@ struct elf_x86_link_hash_table
to read-only sections. */
bfd_boolean readonly_dynrelocs_against_ifunc;
- /* TRUE if this is a VxWorks x86 target. */
+ /* TRUE if this is a VxWorks x86 target. This is only used for
+ i386. */
bfd_boolean is_vxworks;
/* The (unloaded but important) .rel.plt.unloaded section on VxWorks.
@@ -313,9 +308,15 @@ struct elf_x86_link_hash_table
asection *srelplt2;
/* The index of the next unused R_386_TLS_DESC slot in .rel.plt. This
- is used for i386 only. */
+ is only used for i386. */
bfd_vma next_tls_desc_index;
+ /* The offset into splt of the PLT entry for the TLS descriptor
+ resolver. Special values are 0, if not necessary (or not found
+ to be necessary yet), and -1 if needed but not determined
+ yet. This is only used for x86-64. */
+ bfd_vma tlsdesc_plt;
+
bfd_vma (*r_info) (bfd_vma, bfd_vma);
bfd_vma (*r_sym) (bfd_vma);
enum elf_target_id target_id;