mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 13:53:29 +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:
@ -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>
|
2018-08-01 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* coff-rs6000.c (_bfd_xcoff_put_ldsymbol_name): Suppress warnings
|
* coff-rs6000.c (_bfd_xcoff_put_ldsymbol_name): Suppress warnings
|
||||||
|
@ -353,7 +353,8 @@ riscv_elf_create_dynamic_sections (bfd *dynobj,
|
|||||||
{
|
{
|
||||||
htab->sdyntdata =
|
htab->sdyntdata =
|
||||||
bfd_make_section_anyway_with_flags (dynobj, ".tdata.dyn",
|
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
|
if (!htab->elf.splt || !htab->elf.srelplt || !htab->elf.sdynbss
|
||||||
|
Reference in New Issue
Block a user