diff options
author | Jim Wilson <jimw@sifive.com> | 2019-08-31 21:22:36 -0700 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2019-08-31 21:22:36 -0700 |
commit | 3e7bd7f24146f162565edf878840449f36a8d974 (patch) | |
tree | e1562ea8fb24db5b415d76a083a029e91d531d6c /bfd/ChangeLog | |
parent | 5d2c57a3b7eae927bac295f4e3b2db120f3423d9 (diff) | |
download | gdb-3e7bd7f24146f162565edf878840449f36a8d974.zip gdb-3e7bd7f24146f162565edf878840449f36a8d974.tar.gz gdb-3e7bd7f24146f162565edf878840449f36a8d974.tar.bz2 |
RISC-V: Fix linker problems with tls copy relocs.
The linker doesn't allocate memory space for sections that are only SEC_ALLOC
and SEC_THREAD_LOCAL. See the IS_TBSS test in ld/ldlang.c. So we need to
pretend that .tdata.dyn sections have contents to get the right result. It
will be marked this way anyways if there is a .tdata section to merge with.
bfd/
PR 23825
* elfnn-riscv.c (riscv_elf_create_dynamic_sections): Add SEC_LOAD,
SEC_DATA, and SEC_HAS_CONTENTS to .tdata.dyn section.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1fc39dc..2b06383 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2019-08-31 Jim Wilson <jimw@sifive.com> + + PR 23825 + * elfnn-riscv.c (riscv_elf_create_dynamic_sections): Add SEC_LOAD, + SEC_DATA, and SEC_HAS_CONTENTS to .tdata.dyn section. + 2019-08-30 Jim Wilson <jimw@sifive.com> * elfnn-riscv.c (riscv_elf_relocate_section): For unresolvable reloc |