From: Rafael Espindola Date: Thu, 4 Jun 2015 15:15:12 +0000 (+0000) Subject: llvm-readobj can parse relocations, no need to check the raw bytes.x X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=523b2cdb292db50361851b34e8c3716922a92196;p=oota-llvm.git llvm-readobj can parse relocations, no need to check the raw bytes.x git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239041 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/MC/Mips/mips-pdr.s b/test/MC/Mips/mips-pdr.s index 372c259bb09..79e824bda64 100644 --- a/test/MC/Mips/mips-pdr.s +++ b/test/MC/Mips/mips-pdr.s @@ -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,@function