[lld] r257101 - Fix offset in test case. NFC

Pete Cooper via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 7 13:12:30 PST 2016


Author: pete
Date: Thu Jan  7 15:12:30 2016
New Revision: 257101

URL: http://llvm.org/viewvc/llvm-project?rev=257101&view=rev
Log:
Fix offset in test case.  NFC

It wasn't actually pointing to the function at the start of the text section, and so the offset in the binary differed when we passed the file through a second time.

The __eh_frame section uses implicit relocations and when reducing this test case from explicit to implicit, I got
the offset wrong.  This makes sure it is correct.

Modified:
    lld/trunk/test/mach-o/arm64-reloc-negDelta32-fixup.yaml

Modified: lld/trunk/test/mach-o/arm64-reloc-negDelta32-fixup.yaml
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/mach-o/arm64-reloc-negDelta32-fixup.yaml?rev=257101&r1=257100&r2=257101&view=diff
==============================================================================
--- lld/trunk/test/mach-o/arm64-reloc-negDelta32-fixup.yaml (original)
+++ lld/trunk/test/mach-o/arm64-reloc-negDelta32-fixup.yaml Thu Jan  7 15:12:30 2016
@@ -7,7 +7,7 @@
 # We don't emit these in to the binary as relocations, so we need to
 # make sure that the offset in the FDE to the CIE is the correct value.
 # CHECK: {{[0-9abcdef]*}} 10000000 00000000 017a5200 01781e01
-# CHECK: {{[0-9abcdef]*}} 100c1f00 20000000 18000000 e4ffffff
+# CHECK: {{[0-9abcdef]*}} 100c1f00 20000000 18000000 b8ffffff
 # Note, this one that matters               ^~~~~~~~
 # It needs to be 0x18 as that is the offset back to 0 where the CIE is.
 # CHECK: {{[0-9abcdef]*}} ffffffff 20000000 00000000 00480e10
@@ -84,7 +84,7 @@ sections:
     content:         [ 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
                        0x01, 0x7A, 0x52, 0x00, 0x01, 0x78, 0x1E, 0x01, 
                        0x10, 0x0C, 0x1F, 0x00, 0x20, 0x00, 0x00, 0x00, 
-                       0x18, 0x00, 0x00, 0x00, 0xE4, 0xFF, 0xFF, 0xFF, 
+                       0x18, 0x00, 0x00, 0x00, 0x94, 0xFF, 0xFF, 0xFF, 
                        0xFF, 0xFF, 0xFF, 0xFF, 0x20, 0x00, 0x00, 0x00, 
                        0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x0E, 0x10, 
                        0x9E, 0x01, 0x9D, 0x02, 0x00, 0x00, 0x00, 0x00 ]




More information about the llvm-commits mailing list