1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/tools/obj2yaml/coff-bss.s
Reid Kleckner a378a52411 [COFF] Fix .bss section size bug in obj2yaml / yaml2obj
We need to serialize SizeOfRawData through even when there is no data,
as in a .bss section.

Fixes PR41836

llvm-svn: 360473
2019-05-10 21:53:44 +00:00

15 lines
415 B
ArmAsm

# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %t.obj
# RUN: llvm-objdump -h %t.obj | FileCheck %s
# RUN: obj2yaml %t.obj | yaml2obj -o %t.2.obj
# RUN: llvm-objdump -h %t.2.obj | FileCheck %s
# CHECK: Idx Name Size VMA Type
# CHECK: .bss 00000004 0000000000000000 BSS
# Before PR41836, Size would be 0 after yaml conversion.
.bss
.global gv_bss
gv_bss:
.long 0