diff options
Diffstat (limited to 'test/ELF/invalid/invalid-relocation-x64.test')
| -rw-r--r-- | test/ELF/invalid/invalid-relocation-x64.test | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/test/ELF/invalid/invalid-relocation-x64.test b/test/ELF/invalid/invalid-relocation-x64.test index d52cf87c1b35..9b8ebb59e474 100644 --- a/test/ELF/invalid/invalid-relocation-x64.test +++ b/test/ELF/invalid/invalid-relocation-x64.test @@ -1,7 +1,8 @@ -## invalid-relocation-x64.elf contains relocations with invalid relocation number. -## Next yaml code was used to create initial binary. After that it -## was modified with hex-editor to replace known relocations with fake ones, -## that have 0x98 and 0x98 numbers. +# RUN: yaml2obj %s -o %t.o +# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s +# CHECK: {{.*}}.o: unknown relocation type: Unknown (152) +# CHECK: {{.*}}.o: unknown relocation type: Unknown (153) + !ELF FileHeader: Class: ELFCLASS64 @@ -20,11 +21,7 @@ Sections: Relocations: - Offset: 0x0000000000000000 Symbol: '' - Type: R_X86_64_NONE + Type: 0x98 - Offset: 0x0000000000000000 Symbol: '' - Type: R_X86_64_NONE - -# RUN: not ld.lld %p/Inputs/invalid-relocation-x64.elf -o %t2 2>&1 | FileCheck %s -# CHECK: {{.*}}invalid-relocation-x64.elf: unknown relocation type: Unknown (152) -# CHECK: {{.*}}invalid-relocation-x64.elf: unknown relocation type: Unknown (153) + Type: 0x99 |
