summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2020-01-13 11:09:47 +0100
committerPavel Labath <pavel@labath.sk>2020-01-13 11:17:34 +0100
commit96b8e1ac4674dd3035b6cc7b1b7ed8b946208ab1 (patch)
tree63b1ee4470549d36e0a0cea189bc6399bb156af6 /lldb
parente45fcfc3aa57bb237fd4fd694d0c257be66d5482 (diff)
downloadbcm5719-llvm-96b8e1ac4674dd3035b6cc7b1b7ed8b946208ab1.tar.gz
bcm5719-llvm-96b8e1ac4674dd3035b6cc7b1b7ed8b946208ab1.zip
[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.
Diffstat (limited to 'lldb')
-rw-r--r--lldb/test/Shell/Unwind/Inputs/eh-frame-small-fde.s11
1 files changed, 3 insertions, 8 deletions
diff --git a/lldb/test/Shell/Unwind/Inputs/eh-frame-small-fde.s b/lldb/test/Shell/Unwind/Inputs/eh-frame-small-fde.s
index acc5eaca3fd..b08436af3f2 100644
--- a/lldb/test/Shell/Unwind/Inputs/eh-frame-small-fde.s
+++ b/lldb/test/Shell/Unwind/Inputs/eh-frame-small-fde.s
@@ -1,18 +1,15 @@
.text
- .globl bar
+
.type bar, @function
bar:
-.LFB0:
.cfi_startproc
leal (%edi, %edi), %eax
ret
.cfi_endproc
-.LFE0:
.size bar, .-bar
- .globl foo
+
.type foo, @function
foo:
-.LFB1:
nop # Make the FDE entry start one byte later than the actual function.
.cfi_startproc
.cfi_register %rip, %r13
@@ -20,12 +17,11 @@ foo:
addl $1, %eax
jmp *%r13 # Return
.cfi_endproc
-.LFE1:
.size foo, .-foo
+
.globl main
.type main, @function
main:
-.LFB2:
.cfi_startproc
pushq %rbp
.cfi_def_cfa_offset 16
@@ -44,5 +40,4 @@ main:
.cfi_def_cfa 7, 8
ret
.cfi_endproc
-.LFE2:
.size main, .-main
OpenPOWER on IntegriCloud