[all-commits] [llvm/llvm-project] 35be65: [MC] Fix an assert in MCAssembler::writeSectionDat...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Oct 29 23:11:37 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 35be65cb1ceeb1f509ee4696871ddb86a8d16d8f
      https://github.com/llvm/llvm-project/commit/35be65cb1ceeb1f509ee4696871ddb86a8d16d8f
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-10-29 (Thu, 29 Oct 2020)

  Changed paths:
    M llvm/lib/MC/MCAssembler.cpp

  Log Message:
  -----------
  [MC] Fix an assert in MCAssembler::writeSectionData to be aware of errors

If MCContext has an error, MCAssembler::layout may stop early
and some MCFragment's may not finalize.

In the Linux kernel, arch/x86/lib/memcpy_64.S could trigger the assert before
"x86_64: Change .weak to SYM_FUNC_START_WEAK for arch/x86/lib/mem*_64.S"




More information about the All-commits mailing list