objdump-section-content.test 1.2 KB

123456789101112131415161718192021222324
  1. RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-objdump -s - | FileCheck %s -check-prefix COFF-i386
  2. RUN: llvm-objdump -s %p/Inputs/trivial-object-test.elf-i386 \
  3. RUN: | FileCheck %s -check-prefix ELF-i386
  4. RUN: llvm-objdump -s %p/Inputs/shared-object-test.elf-i386 \
  5. RUN: | FileCheck %s -check-prefix BSS
  6. COFF-i386: file format
  7. COFF-i386: Contents of section .text:
  8. COFF-i386: 0000 83ec0cc7 44240800 000000c7 04240000 ....D$.......$..
  9. COFF-i386: 0010 0000e800 000000e8 00000000 8b442408 .............D$.
  10. COFF-i386: 0020 83c40cc3 ....
  11. COFF-i386: Contents of section .data:
  12. COFF-i386: 0000 48656c6c 6f20576f 726c6421 00 Hello World!.
  13. ELF-i386: trivial-object-test.elf-i386: file format
  14. ELF-i386: Contents of section .text:
  15. ELF-i386: 0000 83ec0cc7 44240800 000000c7 04240000 ....D$.......$..
  16. ELF-i386: 0010 0000e8fc ffffffe8 fcffffff 8b442408 .............D$.
  17. ELF-i386: 0020 83c40cc3 ....
  18. ELF-i386: Contents of section .rodata.str1.1:
  19. ELF-i386: 0024 48656c6c 6f20576f 726c6421 00 Hello World!.
  20. BSS: Contents of section .bss:
  21. BSS-NEXT: <skipping contents of bss section at [12c8, 12cc)>