This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Set root.linker_def on _TLS_MODULE_BASE_


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=576fa8831a7334ef5be41d9f3dc72a92bc227979

commit 576fa8831a7334ef5be41d9f3dc72a92bc227979
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sat Feb 14 20:17:10 2015 -0800

    Set root.linker_def on _TLS_MODULE_BASE_
    
    	* elf32-i386.c (elf_i386_always_size_sections): Set root.linker_def
    	on _TLS_MODULE_BASE_.
    	* elf64-x86-64.c (elf_x86_64_always_size_sections): Likewise.

Diff:
---
 bfd/ChangeLog      | 6 ++++++
 bfd/elf32-i386.c   | 1 +
 bfd/elf64-x86-64.c | 1 +
 3 files changed, 8 insertions(+)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index fa3d7ea..664c4c7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2015-02-15  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* elf32-i386.c (elf_i386_always_size_sections): Set root.linker_def
+	on _TLS_MODULE_BASE_.
+	* elf64-x86-64.c (elf_x86_64_always_size_sections): Likewise.
+
 2015-02-15  Alan Modra  <amodra@gmail.com>
 
 	* dwarf2.c (read_rangelist): Correct buffer overflow check
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 452ec54..8028b05 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -3143,6 +3143,7 @@ elf_i386_always_size_sections (bfd *output_bfd,
 	  tlsbase = (struct elf_link_hash_entry *)bh;
 	  tlsbase->def_regular = 1;
 	  tlsbase->other = STV_HIDDEN;
+	  tlsbase->root.linker_def = 1;
 	  (*bed->elf_backend_hide_symbol) (info, tlsbase, TRUE);
 	}
     }
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index fd9c726..eef0d60 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -3409,6 +3409,7 @@ elf_x86_64_always_size_sections (bfd *output_bfd,
 	  tlsbase = (struct elf_link_hash_entry *)bh;
 	  tlsbase->def_regular = 1;
 	  tlsbase->other = STV_HIDDEN;
+	  tlsbase->root.linker_def = 1;
 	  (*bed->elf_backend_hide_symbol) (info, tlsbase, TRUE);
 	}
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]