[Lldb-commits] [lldb] 96b8e1a - [lldb] Fix eh-frame-small-fde test for changes in lld

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 13 02:15:46 PST 2020


Author: Pavel Labath
Date: 2020-01-13T11:17:34+01:00
New Revision: 96b8e1ac4674dd3035b6cc7b1b7ed8b946208ab1

URL: https://github.com/llvm/llvm-project/commit/96b8e1ac4674dd3035b6cc7b1b7ed8b946208ab1
DIFF: https://github.com/llvm/llvm-project/commit/96b8e1ac4674dd3035b6cc7b1b7ed8b946208ab1.diff

LOG: [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.

Added: 
    

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

Removed: 
    


################################################################################
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 acc5eaca3fd9..b08436af3f2e 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


        


More information about the lldb-commits mailing list