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

GitOrigin-RevId: 49cbf4cd85a9ae6b53947fb8cf39ccfb56becc57
diff --git a/test/ELF/eh-frame-hdr-augmentation.s b/test/ELF/eh-frame-hdr-augmentation.s
index 9c9b862..4fe6a5f 100644
--- a/test/ELF/eh-frame-hdr-augmentation.s
+++ b/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: