X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FMC%2FELF%2Fbasic-elf-32.s;h=e12fc526369e8e94840818c160ce2d799a7b821c;hb=21bcdeb1d65b4be0d716693f3dcabd2e8a7c6386;hp=fa97da44d4222b573e6af0fbbfee870572d397cc;hpb=bbdcd443614fc1ac012227d9975201c18b9e2ab4;p=oota-llvm.git diff --git a/test/MC/ELF/basic-elf-32.s b/test/MC/ELF/basic-elf-32.s index fa97da44d42..e12fc526369 100644 --- a/test/MC/ELF/basic-elf-32.s +++ b/test/MC/ELF/basic-elf-32.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | elf-dump | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple i686-pc-linux-gnu %s -o - | llvm-readobj -h -s -r -t | FileCheck %s .text .globl main @@ -30,49 +30,53 @@ main: # @main .section .note.GNU-stack,"",@progbits -// CHECK: ('e_indent[EI_CLASS]', 0x00000001) -// CHECK: ('e_indent[EI_DATA]', 0x00000001) -// CHECK: ('e_indent[EI_VERSION]', 0x00000001) -// CHECK: ('_sections', [ -// CHECK: # Section 0 -// CHECK: (('sh_name', 0x00000000) # '' +// CHECK: ElfHeader { +// CHECK: Class: 32-bit +// CHECK: DataEncoding: LittleEndian +// CHECK: FileVersion: 1 +// CHECK: } +// CHECK: Sections [ +// CHECK: Section { +// CHECK: Index: 0 +// CHECK: Name: (0) -// CHECK: # '.text' +// CHECK: Name: .text -// CHECK: ('st_bind', 0x00000000) -// CHECK: ('st_type', 0x00000003) +// CHECK: Name: .rel.text -// CHECK: ('st_bind', 0x00000000) -// CHECK: ('st_type', 0x00000003) +// CHECK: Relocations [ +// CHECK: Section (2) .rel.text { +// CHECK: 0x6 R_386_32 .L.str1 +// CHECK: 0xB R_386_PC32 puts +// CHECK: 0x12 R_386_32 .L.str2 +// CHECK: 0x17 R_386_PC32 puts +// CHECK: } +// CHECK: ] -// CHECK: ('st_bind', 0x00000000) -// CHECK: ('st_type', 0x00000003) +// CHECK: Symbols [ +// CHECK: Symbol { +// CHECK: Binding: Local +// CHECK: Type: Section +// CHECK: } -// CHECK: # 'main' -// CHECK: ('st_bind', 0x00000001) -// CHECK-NEXT: ('st_type', 0x00000002) +// CHECK: Symbol { +// CHECK: Binding: Local +// CHECK: Type: Section +// CHECK: } -// CHECK: # 'puts' -// CHECK: ('st_bind', 0x00000001) -// CHECK-NEXT: ('st_type', 0x00000000) +// CHECK: Symbol { +// CHECK: Binding: Local +// CHECK: Type: Section +// CHECK: } -// CHECK: # '.rel.text' +// CHECK: Symbol { +// CHECK: Name: main +// CHECK: Binding: Global +// CHECK: Type: Function +// CHECK: } -// CHECK: ('_relocations', [ -// CHECK: # Relocation 0x00000000 -// CHECK: (('r_offset', 0x00000006) -// CHECK: ('r_type', 0x00000001) -// CHECK: ), -// CHECK: # Relocation 0x00000001 -// CHECK: (('r_offset', 0x0000000b) -// CHECK: ('r_type', 0x00000002) -// CHECK: ), -// CHECK: # Relocation 0x00000002 -// CHECK: (('r_offset', 0x00000012) -// CHECK: ('r_type', 0x00000001) -// CHECK: ), -// CHECK: # Relocation 0x00000003 -// CHECK: (('r_offset', 0x00000017) -// CHECK: ('r_type', 0x00000002) -// CHECK: ), -// CHECK: ]) +// CHECK: Symbol { +// CHECK: Name: puts +// CHECK: Binding: Global +// CHECK: Type: None +// CHECK: }