diff options
author | Jim Wilson <jimw@sifive.com> | 2018-10-04 13:29:57 -0700 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2018-10-04 13:29:57 -0700 |
commit | 3e1b4df89cfa5171c52245d79434774f4b570ae1 (patch) | |
tree | 970a3dad1a6df126501650be36c80bb0249c460f /bfd/elfnn-riscv.c | |
parent | 5ca8c39f059b30991b7090e7a662e4eb35d11133 (diff) | |
download | gdb-3e1b4df89cfa5171c52245d79434774f4b570ae1.zip gdb-3e1b4df89cfa5171c52245d79434774f4b570ae1.tar.gz gdb-3e1b4df89cfa5171c52245d79434774f4b570ae1.tar.bz2 |
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.
Diffstat (limited to 'bfd/elfnn-riscv.c')
-rw-r--r-- | bfd/elfnn-riscv.c | 3 |
1 files changed, 2 insertions, 1 deletions
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. */ |