Nicholas Clifton eb2c34
diff -rup ../binutils-2.20.51.0.2.original/bfd/elf32-i386.c ./bfd/elf32-i386.c
Nicholas Clifton eb2c34
--- ../binutils-2.20.51.0.2.original/bfd/elf32-i386.c	2010-01-13 16:01:28.000000000 +0000
Nicholas Clifton eb2c34
+++ ./bfd/elf32-i386.c	2010-02-02 13:07:58.000000000 +0000
Nicholas Clifton eb2c34
@@ -653,19 +653,8 @@ struct elf_i386_link_hash_table
Nicholas Clifton eb2c34
   asection *sdynbss;
Nicholas Clifton eb2c34
   asection *srelbss;
Nicholas Clifton eb2c34
 
Nicholas Clifton eb2c34
-  /* The (unloaded but important) .rel.plt.unloaded section on VxWorks.  */
Nicholas Clifton eb2c34
-  asection *srelplt2;
Nicholas Clifton eb2c34
-
Nicholas Clifton eb2c34
-  /* True if the target system is VxWorks.  */
Nicholas Clifton eb2c34
-  int is_vxworks;
Nicholas Clifton eb2c34
-
Nicholas Clifton eb2c34
-  /* Value used to fill the last word of the first plt entry.  */
Nicholas Clifton eb2c34
-  bfd_byte plt0_pad_byte;
Nicholas Clifton eb2c34
-
Nicholas Clifton eb2c34
-  /* The index of the next unused R_386_TLS_DESC slot in .rel.plt.  */
Nicholas Clifton eb2c34
-  bfd_vma next_tls_desc_index;
Nicholas Clifton eb2c34
-
Nicholas Clifton eb2c34
-  union {
Nicholas Clifton eb2c34
+  union
Nicholas Clifton eb2c34
+  {
Nicholas Clifton eb2c34
     bfd_signed_vma refcount;
Nicholas Clifton eb2c34
     bfd_vma offset;
Nicholas Clifton eb2c34
   } tls_ldm_got;
Nicholas Clifton eb2c34
@@ -682,10 +671,22 @@ struct elf_i386_link_hash_table
Nicholas Clifton eb2c34
 
Nicholas Clifton eb2c34
   /* Used by local STT_GNU_IFUNC symbols.  */
Nicholas Clifton eb2c34
   htab_t loc_hash_table;
Nicholas Clifton eb2c34
-  void *loc_hash_memory;
Nicholas Clifton eb2c34
+  void * loc_hash_memory;
Nicholas Clifton eb2c34
 
Nicholas Clifton eb2c34
   asection *sdynsharablebss;
Nicholas Clifton eb2c34
   asection *srelsharablebss;
Nicholas Clifton eb2c34
+  
Nicholas Clifton eb2c34
+  /* The (unloaded but important) .rel.plt.unloaded section on VxWorks.  */
Nicholas Clifton eb2c34
+  asection *srelplt2;
Nicholas Clifton eb2c34
+
Nicholas Clifton eb2c34
+  /* True if the target system is VxWorks.  */
Nicholas Clifton eb2c34
+  int is_vxworks;
Nicholas Clifton eb2c34
+
Nicholas Clifton eb2c34
+  /* The index of the next unused R_386_TLS_DESC slot in .rel.plt.  */
Nicholas Clifton eb2c34
+  bfd_vma next_tls_desc_index;
Nicholas Clifton eb2c34
+
Nicholas Clifton eb2c34
+  /* Value used to fill the last word of the first PLT entry.  */
Nicholas Clifton eb2c34
+  bfd_byte plt0_pad_byte;
Nicholas Clifton eb2c34
 };
Nicholas Clifton eb2c34
 
Nicholas Clifton eb2c34
 /* Get the i386 ELF linker hash table from a link_info structure.  */
Nicholas Clifton eb2c34
diff -rup ../binutils-2.20.51.0.2.original/bfd/elf64-x86-64.c ./bfd/elf64-x86-64.c
Nicholas Clifton eb2c34
--- ../binutils-2.20.51.0.2.original/bfd/elf64-x86-64.c	2010-01-13 16:01:27.000000000 +0000
Nicholas Clifton eb2c34
+++ ./bfd/elf64-x86-64.c	2010-02-02 13:15:52.000000000 +0000
Nicholas Clifton eb2c34
@@ -470,16 +470,8 @@ struct elf64_x86_64_link_hash_table
Nicholas Clifton eb2c34
   asection *sdynbss;
Nicholas Clifton eb2c34
   asection *srelbss;
Nicholas Clifton eb2c34
 
Nicholas Clifton eb2c34
-  /* The offset into splt of the PLT entry for the TLS descriptor
Nicholas Clifton eb2c34
-     resolver.  Special values are 0, if not necessary (or not found
Nicholas Clifton eb2c34
-     to be necessary yet), and -1 if needed but not determined
Nicholas Clifton eb2c34
-     yet.  */
Nicholas Clifton eb2c34
-  bfd_vma tlsdesc_plt;
Nicholas Clifton eb2c34
-  /* The offset into sgot of the GOT entry used by the PLT entry
Nicholas Clifton eb2c34
-     above.  */
Nicholas Clifton eb2c34
-  bfd_vma tlsdesc_got;
Nicholas Clifton eb2c34
-
Nicholas Clifton eb2c34
-  union {
Nicholas Clifton eb2c34
+  union
Nicholas Clifton eb2c34
+  {
Nicholas Clifton eb2c34
     bfd_signed_vma refcount;
Nicholas Clifton eb2c34
     bfd_vma offset;
Nicholas Clifton eb2c34
   } tls_ld_got;
Nicholas Clifton eb2c34
@@ -495,10 +487,19 @@ struct elf64_x86_64_link_hash_table
Nicholas Clifton eb2c34
 
Nicholas Clifton eb2c34
   /* Used by local STT_GNU_IFUNC symbols.  */
Nicholas Clifton eb2c34
   htab_t loc_hash_table;
Nicholas Clifton eb2c34
-  void *loc_hash_memory;
Nicholas Clifton eb2c34
+  void * loc_hash_memory;
Nicholas Clifton eb2c34
 
Nicholas Clifton eb2c34
   asection *sdynsharablebss;
Nicholas Clifton eb2c34
   asection *srelsharablebss;
Nicholas Clifton eb2c34
+  
Nicholas Clifton eb2c34
+  /* The offset into splt of the PLT entry for the TLS descriptor
Nicholas Clifton eb2c34
+     resolver.  Special values are 0, if not necessary (or not found
Nicholas Clifton eb2c34
+     to be necessary yet), and -1 if needed but not determined
Nicholas Clifton eb2c34
+     yet.  */
Nicholas Clifton eb2c34
+  bfd_vma tlsdesc_plt;
Nicholas Clifton eb2c34
+  /* The offset into sgot of the GOT entry used by the PLT entry
Nicholas Clifton eb2c34
+     above.  */
Nicholas Clifton eb2c34
+  bfd_vma tlsdesc_got;
Nicholas Clifton eb2c34
 };
Nicholas Clifton eb2c34
 
Nicholas Clifton eb2c34
 /* Get the x86-64 ELF linker hash table from a link_info structure.  */