brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · d4c2cd8 Raw
42 lines · plain
1# RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-objdump -s - | FileCheck %s --check-prefix=COFF-i3862 3# COFF-i386: file format4# COFF-i386: Contents of section .text:5# COFF-i386:  0000 83ec0cc7 44240800 000000c7 04240000  ....D$.......$..6# COFF-i386:  0010 0000e800 000000e8 00000000 8b442408  .............D$.7# COFF-i386:  0020 83c40cc3                             ....8# COFF-i386: Contents of section .data:9# COFF-i386:  0000 48656c6c 6f20576f 726c6421 00        Hello World!.10 11# RUN: yaml2obj %s -o %t.elf-i38612# RUN: llvm-objdump -s %t.elf-i386 | FileCheck %s -DFILE=%t.elf-i386 --check-prefix=ELF-i38613 14# ELF-i386: [[FILE]]:     file format15# ELF-i386: Contents of section .text:16# ELF-i386:  0000 83ec0cc7 44240800 000000c7 04240000  ....D$.......$..17# ELF-i386:  0010 0000e8fc ffffffe8 fcffffff 8b442408  .............D$.18# ELF-i386:  0020 83c40cc3                             ....19# ELF-i386: Contents of section .rodata.str1.1:20# ELF-i386:  0024 48656c6c 6f20576f 726c6421 00        Hello World!.21 22--- !ELF23FileHeader:24  Class:   ELFCLASS3225  Data:    ELFDATA2LSB26  Type:    ET_REL27  Machine: EM_38628Sections:29  - Name:    .text30    Type:    SHT_PROGBITS31    Content: 83EC0CC744240800000000C7042400000000E8FCFFFFFFE8FCFFFFFF8B44240883C40CC332  - Name:    .rodata.str1.133    Type:    SHT_PROGBITS34    Address: 0x000000000000002435    Content: 48656C6C6F20576F726C64210036 37# RUN: llvm-objdump -s %p/Inputs/shared-object-test.elf-i386 \38# RUN:              | FileCheck %s -check-prefix BSS39 40# BSS: Contents of section .bss:41# BSS-NEXT: <skipping contents of bss section at [12c8, 12cc)>42