[all-commits] [llvm/llvm-project] 189b73: [lld][RISCV] Use an e_flags of 0 if there are only...

John Baldwin via All-commits all-commits at lists.llvm.org
Sat Dec 21 09:59:58 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 189b7393d545330fae6b84e9a140d34e09eb634e
      https://github.com/llvm/llvm-project/commit/189b7393d545330fae6b84e9a140d34e09eb634e
  Author: John Baldwin <jhb at FreeBSD.org>
  Date:   2019-12-21 (Sat, 21 Dec 2019)

  Changed paths:
    M lld/ELF/Arch/RISCV.cpp
    A lld/test/ELF/riscv-elf-flags.s

  Log Message:
  -----------
  [lld][RISCV] Use an e_flags of 0 if there are only binary input files.

Summary:
If none of the input files are ELF object files (for example, when
generating an object file from a single binary input file via
"-b binary"), use a fallback value for the ELF header flags instead
of crashing with an assertion failure.

Reviewers: MaskRay, ruiu, espindola

Reviewed By: MaskRay, ruiu

Subscribers: kevans, grimar, emaste, arichardson, asb, rbar, johnrusso, simoncook, sabuasal, niosHD, kito-cheng, shiva0217, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, lenary, s.egerton, pzheng, sameer.abuasal, apazos, luismarques, llvm-commits, jrtc27

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D71101




More information about the All-commits mailing list