[PATCH] D34893: [ELF] - Remove use of precomipled binary for invalid-relocation-x64.test

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 3 08:25:14 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL307032: [ELF] - Remove use of precomipled binary for invalid-relocation-x64.test (authored by grimar).

Changed prior to commit:
  https://reviews.llvm.org/D34893?vs=104876&id=105083#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D34893

Files:
  lld/trunk/test/ELF/invalid/Inputs/invalid-relocation-x64.elf
  lld/trunk/test/ELF/invalid/invalid-relocation-x64.test


Index: lld/trunk/test/ELF/invalid/invalid-relocation-x64.test
===================================================================
--- lld/trunk/test/ELF/invalid/invalid-relocation-x64.test
+++ lld/trunk/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 @@
     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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34893.105083.patch
Type: text/x-patch
Size: 1364 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170703/4c671bd5/attachment.bin>


More information about the llvm-commits mailing list