diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-06 13:06:17 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-06 13:06:17 +0000 |
commit | e3a0e7f29dde261ca00835e763e26de41a8684f6 (patch) | |
tree | b3d0775b1c7e332bd720f4d991c9b9869d7b16d8 /test | |
parent | 2ed7659b88db1b0f3e5e6e6d9920c1d149159986 (diff) | |
download | external_llvm-e3a0e7f29dde261ca00835e763e26de41a8684f6.zip external_llvm-e3a0e7f29dde261ca00835e763e26de41a8684f6.tar.gz external_llvm-e3a0e7f29dde261ca00835e763e26de41a8684f6.tar.bz2 |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/Object/Inputs/COFF/i386.yaml | 6 | ||||
-rw-r--r-- | test/Object/Inputs/COFF/x86-64.yaml | 6 | ||||
-rw-r--r-- | test/Object/obj2yaml.test | 12 |
3 files changed, 12 insertions, 12 deletions
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 |