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.
This commit is contained in:
H.J. Lu
2015-02-14 20:17:10 -08:00
parent 49987e5cbb
commit 576fa8831a
3 changed files with 8 additions and 0 deletions

View File

@ -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> 2015-02-15 Alan Modra <amodra@gmail.com>
* dwarf2.c (read_rangelist): Correct buffer overflow check * dwarf2.c (read_rangelist): Correct buffer overflow check

View File

@ -3143,6 +3143,7 @@ elf_i386_always_size_sections (bfd *output_bfd,
tlsbase = (struct elf_link_hash_entry *)bh; tlsbase = (struct elf_link_hash_entry *)bh;
tlsbase->def_regular = 1; tlsbase->def_regular = 1;
tlsbase->other = STV_HIDDEN; tlsbase->other = STV_HIDDEN;
tlsbase->root.linker_def = 1;
(*bed->elf_backend_hide_symbol) (info, tlsbase, TRUE); (*bed->elf_backend_hide_symbol) (info, tlsbase, TRUE);
} }
} }

View File

@ -3409,6 +3409,7 @@ elf_x86_64_always_size_sections (bfd *output_bfd,
tlsbase = (struct elf_link_hash_entry *)bh; tlsbase = (struct elf_link_hash_entry *)bh;
tlsbase->def_regular = 1; tlsbase->def_regular = 1;
tlsbase->other = STV_HIDDEN; tlsbase->other = STV_HIDDEN;
tlsbase->root.linker_def = 1;
(*bed->elf_backend_hide_symbol) (info, tlsbase, TRUE); (*bed->elf_backend_hide_symbol) (info, tlsbase, TRUE);
} }
} }