[lld] [lld][test] filecheck typo fixes (PR #93471)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 7 06:40:11 PST 2025
================
@@ -23,8 +23,8 @@
## Check that [1] offset starts at c's address + 3 (its length).
# CHECK-LABEL: Contents of __unwind_info section:
# CHECK: Top level indices: (count = 2)
-# CHECK-NEXT : [0]: function offset=[[#%#.7x,MAIN_ADDR]]
-# CHECK-NEXT : [1]: function offset=[[#%#.7x,C_ADDR + 3]]
+# CHECK-NEXT: [0]: function offset=[[#%#.7x,MAIN_ADDR]]
----------------
klensy wrote:
Output is:
```
SYMBOL TABLE:
0000000100000380 l F __TEXT,__text _a
0000000100000390 l F __TEXT,__text _b
00000001000003a0 l F __TEXT,__text _c
00000001000003a1 l F __TEXT,__text _d
0000000100000370 g F __TEXT,__text _main
0000000100000000 g F __TEXT,__text __mh_execute_header
0000000000000000 *UND* dyld_stub_binder
Contents of __unwind_info section:
Version: 0x1
Common encodings array section offset: 0x1c
Number of common encodings in array: 0x5
Personality function array section offset: 0x30
Number of personality functions in array: 0x0
Index array section offset: 0x30
Number of indices in array: 0x2
Common encodings: (count = 5)
encoding[0]: 0x04000078
encoding[1]: 0x04000058
encoding[2]: 0x04000038
encoding[3]: 0x04000018
encoding[4]: 0x00000000
Personality functions: (count = 0)
Top level indices: (count = 2)
[0]: function offset=0x00000370, 2nd level page offset=0x00000048, LSDA offset=0x00000048
[1]: function offset=0x000003a1, 2nd level page offset=0x00000000, LSDA offset=0x00000048
LSDA descriptors:
Second level indices:
Second level index[0]: offset in section=0x00000048, base function offset=0x00000370
[0]: function offset=0x00000370, encoding[3]=0x04000018
[1]: function offset=0x00000380, encoding[2]=0x04000038
[2]: function offset=0x00000390, encoding[1]=0x04000058
[3]: function offset=0x000003a0, encoding[0]=0x04000078
[4]: function offset=0x000003a1, encoding[4]=0x00000000
```
So filecheck fails to match `0x100000370` with `0x00000370` (and next line will fail too)
https://github.com/llvm/llvm-project/pull/93471
More information about the llvm-commits
mailing list