Skip to content

Commit 96b8e1a

Browse files
committed
[lldb] Fix eh-frame-small-fde test for changes in lld
lld in 2bfee35 started emitting relocations for some intra-section jumps between global symbols. This shifted the code around a bit, invalidating text expectations. Change the symbols to local to keep the previous behavior.
1 parent e45fcfc commit 96b8e1a

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

lldb/test/Shell/Unwind/Inputs/eh-frame-small-fde.s

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
.text
2-
.globl bar
2+
33
.type bar, @function
44
bar:
5-
.LFB0:
65
.cfi_startproc
76
leal (%edi, %edi), %eax
87
ret
98
.cfi_endproc
10-
.LFE0:
119
.size bar, .-bar
12-
.globl foo
10+
1311
.type foo, @function
1412
foo:
15-
.LFB1:
1613
nop # Make the FDE entry start one byte later than the actual function.
1714
.cfi_startproc
1815
.cfi_register %rip, %r13
1916
call bar
2017
addl $1, %eax
2118
jmp *%r13 # Return
2219
.cfi_endproc
23-
.LFE1:
2420
.size foo, .-foo
21+
2522
.globl main
2623
.type main, @function
2724
main:
28-
.LFB2:
2925
.cfi_startproc
3026
pushq %rbp
3127
.cfi_def_cfa_offset 16
@@ -44,5 +40,4 @@ main:
4440
.cfi_def_cfa 7, 8
4541
ret
4642
.cfi_endproc
47-
.LFE2:
4843
.size main, .-main

0 commit comments

Comments
 (0)