aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2019-04-02 13:30:07 -0700
committerJim Wilson <jimw@sifive.com>2019-04-02 13:30:07 -0700
commit87f98bacb76001157d5a26555a41738ac3841a56 (patch)
tree3529ddd9b4ec1826ab636c55ee0b2552e10330f2 /bfd/ChangeLog
parent4c7c79dd9858438a25fcc37ba419baa00d31978d (diff)
downloadgdb-87f98bacb76001157d5a26555a41738ac3841a56.zip
gdb-87f98bacb76001157d5a26555a41738ac3841a56.tar.gz
gdb-87f98bacb76001157d5a26555a41738ac3841a56.tar.bz2
RISC-V: Don't check ABI flags if no code section.
This fixes a glib build failure reported in PR 24389. Using ld -b binary creates an object file with no elf header flags set which has the wrong ABI info for riscv64-linux. But the file also has no code sections, so I added code borrowed from the arm port that only checks the ELF header ABI flags if there is a code section. bfd/ PR 24389 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of ELF header flags to after check for ELF object file. Loop through sections looking for code sections, if none, then skip ABI checks.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r--bfd/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2c630be..ca5a3a1 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2019-04-02 Jim Wilson <jimw@sifive.com>
+
+ PR 24389
+ * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
+ ELF header flags to after check for ELF object file. Loop through
+ sections looking for code sections, if none, then skip ABI checks.
+
2019-03-30 Andrew Waterman <andrew@sifive.com>
* elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for