RISC-V: Delete zero-size .tdata.dyn section.
authorJim Wilson <jimw@sifive.com>
Thu, 4 Oct 2018 20:29:57 +0000 (13:29 -0700)
committerJim Wilson <jimw@sifive.com>
Thu, 4 Oct 2018 20:29:57 +0000 (13:29 -0700)
bfd/
* elfnn-riscv.c (riscv_elf_size_dynamic_sections): In dynobj->sections
loop, handle htab->sdyntdata section.

bfd/ChangeLog
bfd/elfnn-riscv.c

index 1949c7bda3a4bba8eaca3a4edb3e705ec5c0bc34..e46604b7635a69893428b51238758cc0a927f940 100644 (file)
@@ -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
index 88f491f9143329a92041956d7929c1472039857c..5cde72f0034efd66867ab08672cc336895532760 100644 (file)
@@ -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.  */