llvm-mirror/test/MC/COFF/cv-empty-file-table.s
Reid Kleckner 16fb1d2906 [codeview] Avoid emitting an empty file checksum table
Again, the Microsoft linker does not like empty substreams.

We still emit an empty string table if CodeView is enabled, but that
doesn't cause problems because it always contains at least one null
byte.

llvm-svn: 272183
2016-06-08 17:50:29 +00:00

14 lines
502 B
ArmAsm

# RUN: llvm-mc -filetype=obj -triple i686-pc-win32 < %s | llvm-readobj -codeview - | FileCheck %s
.text
.section .debug$S,"dr"
.p2align 2
.long 4 # Debug section magic
.cv_filechecksums # File index to string table offset subsection
.cv_stringtable # String table
# CHECK: CodeViewDebugInfo [
# CHECK: Section: .debug$S (4)
# CHECK: Magic: 0x4
# CHECK-NOT: FileChecksum
# CHECK: ]