• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修訂7550610057c51d47e3815ef93893d4f4faa7e03d (tree)
時間2018-02-05 23:00:21
作者Maciej W. Rozycki <macro@mips...>
CommiterMaciej W. Rozycki

Log Message

ELF/BFD: Propagate the return status from backend section processing

Fix the issue of any failure from ->elf_backend_section_processing'
not being propagated by
_bfd_elf_write_object_contents'. The MIPS
_bfd_mips_elf_section_processing' handler can actually potentially
fail, however the caller currently ignores that.

bfd/
* elf.c (_bfd_elf_write_object_contents): Propagate a failure
status from ->elf_backend_section_processing'.

Change Summary

差異

--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
1+2018-02-05 Maciej W. Rozycki <macro@mips.com>
2+
3+ * elf.c (_bfd_elf_write_object_contents): Propagate a failure
4+ status from `->elf_backend_section_processing'.
5+
16 2018-02-02 Jim Wilson <jimw@sifive.com>
27
38 PR ld/22756
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6354,7 +6354,8 @@ _bfd_elf_write_object_contents (bfd *abfd)
63546354 = _bfd_elf_strtab_offset (elf_shstrtab (abfd),
63556355 i_shdrp[count]->sh_name);
63566356 if (bed->elf_backend_section_processing)
6357- (*bed->elf_backend_section_processing) (abfd, i_shdrp[count]);
6357+ if (!(*bed->elf_backend_section_processing) (abfd, i_shdrp[count]))
6358+ return FALSE;
63586359 if (i_shdrp[count]->contents)
63596360 {
63606361 bfd_size_type amt = i_shdrp[count]->sh_size;