[binutils-gdb] RISC-V: Delete zero-size .tdata.dyn section.
Jim Wilson
wilson@sourceware.org
Thu Oct 4 20:31:00 GMT 2018
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3e1b4df89cfa5171c52245d79434774f4b570ae1
commit 3e1b4df89cfa5171c52245d79434774f4b570ae1
Author: Jim Wilson <jimw@sifive.com>
Date: Thu Oct 4 13:29:57 2018 -0700
RISC-V: Delete zero-size .tdata.dyn section.
bfd/
* elfnn-riscv.c (riscv_elf_size_dynamic_sections): In dynobj->sections
loop, handle htab->sdyntdata section.
Diff:
---
bfd/ChangeLog | 5 +++++
bfd/elfnn-riscv.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1949c7b..e46604b 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-04 Jim Wilson <jimw@sifive.com>
+
+ * elfnn-riscv.c (riscv_elf_size_dynamic_sections): In dynobj->sections
+ loop, handle htab->sdyntdata section.
+
2018-10-04 Jose E. Marchesi <jose.marchesi@oracle.com>
* elf64-sparc.c (elf64_sparc_output_arch_syms): Do notcorrect the
diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c
index 88f491f..5cde72f 100644
--- a/bfd/elfnn-riscv.c
+++ b/bfd/elfnn-riscv.c
@@ -1274,7 +1274,8 @@ riscv_elf_size_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
|| s == htab->elf.sgot
|| s == htab->elf.sgotplt
|| s == htab->elf.sdynbss
- || s == htab->elf.sdynrelro)
+ || s == htab->elf.sdynrelro
+ || s == htab->sdyntdata)
{
/* Strip this section if we don't need it; see the
comment below. */
More information about the Binutils-cvs
mailing list