brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 3f584de Raw
44 lines · plain
1## Check how llvm-dwarfdump calculates section sizes2## with --show-section-sizes for COFF objects.3 4# RUN: yaml2obj %s | llvm-dwarfdump - --show-section-sizes \5# RUN:   | FileCheck %s --match-full-lines --strict-whitespace6 7#      CHECK:----------------------------------------------------8# CHECK-NEXT:file: {{.*}}9# CHECK-NEXT:----------------------------------------------------10# CHECK-NEXT:SECTION        SIZE (b)11# CHECK-NEXT:-------------  --------12# CHECK-NEXT:.debug_str            1 (0.35%)13# CHECK-NEXT:.debug_abbrev         1 (0.35%)14# CHECK-NEXT:.debug_info           2 (0.70%)15# CHECK-EMPTY:16# CHECK-NEXT: Total Size: 4  (1.40%)17# CHECK-NEXT: Total File Size: 28618# CHECK-NEXT:----------------------------------------------------19 20--- !COFF21header:22  Machine:         IMAGE_FILE_MACHINE_AMD6423sections:24  - Name:            .bss25    Characteristics: []26    SectionData:     ''27  - Name:            .debug_str28    Characteristics: []29    SectionData:     0030  - Name:            .debug_abbrev31    Characteristics: []32    Alignment:       133    SectionData:     0034  - Name:            .debug_info35    Characteristics: []36    SectionData:     111137## This is a debug section following the Mach-O naming style, and is used38## to show that such sections are not included in the report.39  - Name:            __debug_foo40    Characteristics: []41    SectionData:     0042symbols:43...44