mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
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:
parent
3e1d3d8c24
commit
13755f406d
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user