RISC-V: Fix TLS and --gc-sections conflict.

bfd/
	* elfnn-riscv.c (riscv_elf_create_dynamic_sections): For .tdata.dyn,
	add SEC_LINKER_CREATED flag.
This commit is contained in:
Jim Wilson 2018-08-02 16:13:49 -07:00
parent 3e1d3d8c24
commit 13755f406d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2018-08-02 Jim Wilson <jimw@sifive.com>
* elfnn-riscv.c (riscv_elf_create_dynamic_sections): For .tdata.dyn,
add SEC_LINKER_CREATED flag.
2018-08-01 Nick Clifton <nickc@redhat.com>
* coff-rs6000.c (_bfd_xcoff_put_ldsymbol_name): Suppress warnings

View File

@ -353,7 +353,8 @@ riscv_elf_create_dynamic_sections (bfd *dynobj,
{
htab->sdyntdata =
bfd_make_section_anyway_with_flags (dynobj, ".tdata.dyn",
SEC_ALLOC | SEC_THREAD_LOCAL);
(SEC_ALLOC | SEC_THREAD_LOCAL
| SEC_LINKER_CREATED));
}
if (!htab->elf.splt || !htab->elf.srelplt || !htab->elf.sdynbss