summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-01-07 21:12:30 +0000
committerPete Cooper <peter_cooper@apple.com>2016-01-07 21:12:30 +0000
commit4ec88b420b7bcdff32360f5f427b25164f1ec2ac (patch)
treea9b27f574bd4320ca2e22804a1637ab9f9a557f4
parent03bb2e59314534c1e8094051ce578851aa672dfe (diff)
downloadbcm5719-llvm-4ec88b420b7bcdff32360f5f427b25164f1ec2ac.tar.gz
bcm5719-llvm-4ec88b420b7bcdff32360f5f427b25164f1ec2ac.zip
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. llvm-svn: 257101
-rw-r--r--lld/test/mach-o/arm64-reloc-negDelta32-fixup.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/test/mach-o/arm64-reloc-negDelta32-fixup.yaml b/lld/test/mach-o/arm64-reloc-negDelta32-fixup.yaml
index 8beab2841dc..4da88097eb6 100644
--- a/lld/test/mach-o/arm64-reloc-negDelta32-fixup.yaml
+++ b/lld/test/mach-o/arm64-reloc-negDelta32-fixup.yaml
@@ -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 ]
OpenPOWER on IntegriCloud