aboutsummaryrefslogtreecommitdiff
path: root/lld
diff options
context:
space:
mode:
authorAlex Orlov <aorlov@accesssoftek.com>2021-04-15 15:06:20 +0400
committerAlex Orlov <aorlov@accesssoftek.com>2021-04-15 15:06:20 +0400
commit49cbf4cd85a9ae6b53947fb8cf39ccfb56becc57 (patch)
tree85183eccdeb0d65ae82d411ac478a46ee76f7a0b /lld
parent[VPlan] Add VPRecipeBase::mayHaveSideEffects. (diff)
downloadllvm-project-49cbf4cd85a9ae6b53947fb8cf39ccfb56becc57.tar.gz
llvm-project-49cbf4cd85a9ae6b53947fb8cf39ccfb56becc57.tar.bz2
llvm-project-49cbf4cd85a9ae6b53947fb8cf39ccfb56becc57.zip
Fix bug in .eh_frame/.debug_frame PC offset calculation for DW_EH_PE_pcrel
This fixes the following bugs: https://bugs.llvm.org/show_bug.cgi?id=27249 https://bugs.llvm.org/show_bug.cgi?id=46414 Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D100328
Diffstat (limited to 'lld')
-rw-r--r--lld/test/ELF/eh-frame-hdr-augmentation.s6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/test/ELF/eh-frame-hdr-augmentation.s b/lld/test/ELF/eh-frame-hdr-augmentation.s
index 9c9b862ae80d..4fe6a5fd45e7 100644
--- a/lld/test/ELF/eh-frame-hdr-augmentation.s
+++ b/lld/test/ELF/eh-frame-hdr-augmentation.s
@@ -12,7 +12,7 @@
// CHECK-NEXT: Code alignment factor: 1
// CHECK-NEXT: Data alignment factor: -8
// CHECK-NEXT: Return address column: 16
-// CHECK-NEXT: Personality Address: 0000000000001029
+// CHECK-NEXT: Personality Address: 000000000000127c
// CHECK-NEXT: Augmentation data:
// CHECK: DW_CFA_def_cfa: reg7 +8
@@ -21,9 +21,9 @@
// CHECK-NEXT: DW_CFA_nop:
/// FIXME Handle relocation correctly
-// CHECK: 00000020 00000014 00000024 FDE cie=00000000 pc=0000103c...0000103c
+// CHECK: 00000020 00000014 00000024 FDE cie=00000000 pc=0000127c...0000127c
// CHECK-NEXT: Format: DWARF32
-// CHECK-NEXT: LSDA Address: 000000000000100b
+// CHECK-NEXT: LSDA Address: 000000000000127c
// CHECK-NEXT: DW_CFA_nop:
// CHECK-NEXT: DW_CFA_nop:
// CHECK-NEXT: DW_CFA_nop: