diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-23 15:53:02 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-23 15:53:02 +0000 |
| commit | b716e622aea95b7e348026b80122d768aea1719c (patch) | |
| tree | 1e6f1360d786aac388bd52e3ee711923cb8b570d /llvm/test | |
| parent | 243b36931f0b189439388afc27e0eea07fbca359 (diff) | |
| download | bcm5719-llvm-b716e622aea95b7e348026b80122d768aea1719c.tar.gz bcm5719-llvm-b716e622aea95b7e348026b80122d768aea1719c.zip | |
Write relocations in yaml2obj.
llvm-svn: 180115
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Object/yaml2obj-readobj.test | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/llvm/test/Object/yaml2obj-readobj.test b/llvm/test/Object/yaml2obj-readobj.test index 545ccc48aa4..3031f5ed31b 100644 --- a/llvm/test/Object/yaml2obj-readobj.test +++ b/llvm/test/Object/yaml2obj-readobj.test @@ -1,5 +1,25 @@ -RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-readobj -file-headers - | FileCheck %s --check-prefix COFF-I386 +RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-readobj -file-headers -relocations -expand-relocs - | FileCheck %s --check-prefix COFF-I386 // COFF-I386: Characteristics [ (0x200) // COFF-I386-NEXT: IMAGE_FILE_DEBUG_STRIPPED (0x200) // COFF-I386-NEXT: ] + +// COFF-I386: Relocations [ +// COFF-I386-NEXT: Section (1) .text { +// COFF-I386-NEXT: Relocation { +// COFF-I386-NEXT: Offset: 0xE +// COFF-I386-NEXT: Type: IMAGE_REL_I386_DIR32 (6) +// COFF-I386-NEXT: Symbol: L_.str +// COFF-I386-NEXT: } +// COFF-I386-NEXT: Relocation { +// COFF-I386-NEXT: Offset: 0x13 +// COFF-I386-NEXT: Type: IMAGE_REL_I386_REL32 (20) +// COFF-I386-NEXT: Symbol: _puts +// COFF-I386-NEXT: } +// COFF-I386-NEXT: Relocation { +// COFF-I386-NEXT: Offset: 0x18 +// COFF-I386-NEXT: Type: IMAGE_REL_I386_REL32 (20) +// COFF-I386-NEXT: Symbol: _SomeOtherFunction +// COFF-I386-NEXT: } +// COFF-I386-NEXT: } +// COFF-I386-NEXT: ] |

