[llvm] r239041 - llvm-readobj can parse relocations, no need to check the raw bytes.x

Rafael Espindola rafael.espindola at gmail.com
Thu Jun 4 08:15:13 PDT 2015


Author: rafael
Date: Thu Jun  4 10:15:12 2015
New Revision: 239041

URL: http://llvm.org/viewvc/llvm-project?rev=239041&view=rev
Log:
llvm-readobj can parse relocations, no need to check the raw bytes.x

Modified:
    llvm/trunk/test/MC/Mips/mips-pdr.s

Modified: llvm/trunk/test/MC/Mips/mips-pdr.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/mips-pdr.s?rev=239041&r1=239040&r2=239041&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/mips-pdr.s (original)
+++ llvm/trunk/test/MC/Mips/mips-pdr.s Thu Jun  4 10:15:12 2015
@@ -2,7 +2,7 @@
 # RUN:   FileCheck %s -check-prefix=ASMOUT
 
 # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -filetype=obj -o - | \
-# RUN:   llvm-readobj -s -section-data | \
+# RUN:   llvm-readobj -s -section-data -r | \
 # RUN:     FileCheck %s -check-prefix=OBJOUT
 
 # ASMOUT: .text
@@ -32,16 +32,12 @@
 # OBJOUT:   }
 
 # We should also check if relocation information was correctly generated.
-# OBJOUT:   Section {
-# OBJOUT:     Name: .rel.pdr
-# OBJOUT:     Type: SHT_REL (0x9)
-# OBJOUT:     Flags [ (0x0)
-# OBJOUT:     ]
-# OBJOUT:     Size: 16
-# OBJOUT:     SectionData (
-# OBJOUT:       0000: 00000000 00000202 00000020 00000802
-# OBJOUT:     )
-# OBJOUT:   }
+# OBJOUT:      Relocations [
+# OBJOUT-NEXT:   Section (6) .rel.pdr {
+# OBJOUT-NEXT:     0x0 R_MIPS_32 .text 0x0
+# OBJOUT-NEXT:     0x20 R_MIPS_32 _global_foo 0x0
+# OBJOUT-NEXT:   }
+# OBJOUT-NEXT: ]
 
 .text
         .type _local_foo, at function





More information about the llvm-commits mailing list