[PATCH] D78138: [MC][ELF] Reject instructions in SHT_NOBITS sections

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 23:22:50 PDT 2020


MaskRay updated this revision to Diff 257601.
MaskRay marked an inline comment as done.
MaskRay edited the summary of this revision.
MaskRay added a comment.

Move the error to MCObjectStreamer::emitInstruction to make MCRelaxableFragment work.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78138/new/

https://reviews.llvm.org/D78138

Files:
  llvm/include/llvm/MC/MCSection.h
  llvm/include/llvm/MC/MCSectionELF.h
  llvm/lib/MC/MCAssembler.cpp
  llvm/lib/MC/MCObjectStreamer.cpp
  llvm/lib/MC/MCSectionELF.cpp
  llvm/test/MC/ELF/ARM/bss-non-zero-value.s
  llvm/test/MC/ELF/nobits-non-zero-value.s
  llvm/test/MC/X86/reloc-bss.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78138.257601.patch
Type: text/x-patch
Size: 4749 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200415/e917e335/attachment.bin>


More information about the llvm-commits mailing list