From e3a0e7f29dde261ca00835e763e26de41a8684f6 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 6 Jun 2013 13:06:17 +0000 Subject: Print symbol names in relocations when dumping COFF as YAML. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183403 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Object/Inputs/COFF/i386.yaml | 6 +++--- test/Object/Inputs/COFF/x86-64.yaml | 6 +++--- test/Object/obj2yaml.test | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'test') diff --git a/test/Object/Inputs/COFF/i386.yaml b/test/Object/Inputs/COFF/i386.yaml index f763182..1badad8 100644 --- a/test/Object/Inputs/COFF/i386.yaml +++ b/test/Object/Inputs/COFF/i386.yaml @@ -12,17 +12,17 @@ sections: Relocations: - !Relocation VirtualAddress: 0xe - SymbolTableIndex: 5 + SymbolName: L_.str Type: IMAGE_REL_I386_DIR32 - !Relocation VirtualAddress: 0x13 - SymbolTableIndex: 6 + SymbolName: _puts Type: IMAGE_REL_I386_REL32 - !Relocation VirtualAddress: 0x18 - SymbolTableIndex: 7 + SymbolName: _SomeOtherFunction Type: IMAGE_REL_I386_REL32 - !Section diff --git a/test/Object/Inputs/COFF/x86-64.yaml b/test/Object/Inputs/COFF/x86-64.yaml index 5134071..b775ae9 100644 --- a/test/Object/Inputs/COFF/x86-64.yaml +++ b/test/Object/Inputs/COFF/x86-64.yaml @@ -11,17 +11,17 @@ sections: Relocations: - !Relocation VirtualAddress: 0xf - SymbolTableIndex: 5 + SymbolName: L.str Type: IMAGE_REL_AMD64_REL32 - !Relocation VirtualAddress: 0x14 - SymbolTableIndex: 6 + SymbolName: puts Type: IMAGE_REL_AMD64_REL32 - !Relocation VirtualAddress: 0x19 - SymbolTableIndex: 7 + SymbolName: SomeOtherFunction Type: IMAGE_REL_AMD64_REL32 - !Section diff --git a/test/Object/obj2yaml.test b/test/Object/obj2yaml.test index 6c87268..4954133 100644 --- a/test/Object/obj2yaml.test +++ b/test/Object/obj2yaml.test @@ -13,15 +13,15 @@ COFF-I386-NEXT: SectionData: 83EC0CC744240800000000C7042400000000E800000000E COFF-I386: Relocations: COFF-I386-NEXT: - VirtualAddress: 14 -COFF-I386-NEXT: SymbolTableIndex: 5 +COFF-I386-NEXT: SymbolName: L_.str COFF-I386-NEXT: Type: IMAGE_REL_I386_DIR32 COFF-I386: - VirtualAddress: 19 -COFF-I386-NEXT: SymbolTableIndex: 6 +COFF-I386-NEXT: SymbolName: _puts COFF-I386-NEXT: Type: IMAGE_REL_I386_REL32 COFF-I386: - VirtualAddress: 24 -COFF-I386-NEXT: SymbolTableIndex: 7 +COFF-I386-NEXT: SymbolName: _SomeOtherFunction COFF-I386-NEXT: Type: IMAGE_REL_I386_REL32 COFF-I386: - Name: .data @@ -88,15 +88,15 @@ COFF-X86-64-NEXT: SectionData: 4883EC28C744242400000000488D0D00000000E800000 COFF-X86-64: Relocations: COFF-X86-64-NEXT: - VirtualAddress: 15 -COFF-X86-64-NEXT: SymbolTableIndex: 5 +COFF-X86-64-NEXT: SymbolName: L.str COFF-X86-64-NEXT: Type: IMAGE_REL_AMD64_REL32 COFF-X86-64: - VirtualAddress: 20 -COFF-X86-64-NEXT: SymbolTableIndex: 6 +COFF-X86-64-NEXT: SymbolName: puts COFF-X86-64-NEXT: Type: IMAGE_REL_AMD64_REL32 COFF-X86-64: - VirtualAddress: 25 -COFF-X86-64-NEXT: SymbolTableIndex: 7 +COFF-X86-64-NEXT: SymbolName: SomeOtherFunction COFF-X86-64-NEXT: Type: IMAGE_REL_AMD64_REL32 COFF-X86-64: - Name: .data -- cgit v1.1