[llvm] r222413 - Add a test for r221870

David Majnemer david.majnemer at gmail.com
Wed Nov 19 21:32:10 PST 2014


Author: majnemer
Date: Wed Nov 19 23:32:10 2014
New Revision: 222413

URL: http://llvm.org/viewvc/llvm-project?rev=222413&view=rev
Log:
Add a test for r221870

bad-relocs.obj.coff-i386 has a relocation whose symbol index is outside
the symbol table.

Added:
    llvm/trunk/test/tools/llvm-readobj/Inputs/bad-relocs.obj.coff-i386
Modified:
    llvm/trunk/test/tools/llvm-readobj/relocations.test

Added: llvm/trunk/test/tools/llvm-readobj/Inputs/bad-relocs.obj.coff-i386
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-readobj/Inputs/bad-relocs.obj.coff-i386?rev=222413&view=auto
==============================================================================
Binary files llvm/trunk/test/tools/llvm-readobj/Inputs/bad-relocs.obj.coff-i386 (added) and llvm/trunk/test/tools/llvm-readobj/Inputs/bad-relocs.obj.coff-i386 Wed Nov 19 23:32:10 2014 differ

Modified: llvm/trunk/test/tools/llvm-readobj/relocations.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-readobj/relocations.test?rev=222413&r1=222412&r2=222413&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-readobj/relocations.test (original)
+++ llvm/trunk/test/tools/llvm-readobj/relocations.test Wed Nov 19 23:32:10 2014
@@ -1,5 +1,7 @@
 RUN: llvm-readobj -r %p/Inputs/trivial.obj.coff-i386 \
 RUN:   | FileCheck %s -check-prefix COFF
+RUN: llvm-readobj -r %p/Inputs/bad-relocs.obj.coff-i386 \
+RUN:   | FileCheck %s -check-prefix BAD-COFF-RELOCS
 RUN: llvm-readobj -r %p/Inputs/trivial.obj.elf-i386 \
 RUN:   | FileCheck %s -check-prefix ELF
 RUN: llvm-readobj -r %p/Inputs/trivial.obj.macho-i386 \
@@ -21,6 +23,12 @@ COFF-NEXT:     0xE IMAGE_REL_I386_REL32
 COFF-NEXT:   }
 COFF-NEXT: ]
 
+BAD-COFF-RELOCS:      Relocations [
+BAD-COFF-RELOCS-NEXT:   Section (1) sec {
+BAD-COFF-RELOCS-NEXT:     0xDEADBEEF IMAGE_REL_I386_ABSOLUTE -
+BAD-COFF-RELOCS-NEXT:   }
+BAD-COFF-RELOCS-NEXT: ]
+
 ELF:      Relocations [
 ELF-NEXT:   Section (2) .rel.text {
 ELF-NEXT:     0xC R_386_GOTPC _GLOBAL_OFFSET_TABLE_ 0x0





More information about the llvm-commits mailing list