[llvm] 6a3a386 - [Orc] Test DebugObjectManagerPlugin fills in load-address for .text section of in-memory ELF debug object

Stefan Gränitz via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 9 05:03:12 PST 2021


Author: Stefan Gränitz
Date: 2021-03-09T14:01:50+01:00
New Revision: 6a3a386c6fc46e2ddf436b20c171291b6d193de2

URL: https://github.com/llvm/llvm-project/commit/6a3a386c6fc46e2ddf436b20c171291b6d193de2
DIFF: https://github.com/llvm/llvm-project/commit/6a3a386c6fc46e2ddf436b20c171291b6d193de2.diff

LOG: [Orc] Test DebugObjectManagerPlugin fills in load-address for .text section of in-memory ELF debug object

Added: 
    

Modified: 
    llvm/test/ExecutionEngine/OrcLazy/debug-descriptor-elf-minimal.ll
    llvm/test/ExecutionEngine/OrcLazy/debug-objects-elf-minimal.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/ExecutionEngine/OrcLazy/debug-descriptor-elf-minimal.ll b/llvm/test/ExecutionEngine/OrcLazy/debug-descriptor-elf-minimal.ll
index d2786f537c65..1c17edb337a1 100644
--- a/llvm/test/ExecutionEngine/OrcLazy/debug-descriptor-elf-minimal.ll
+++ b/llvm/test/ExecutionEngine/OrcLazy/debug-descriptor-elf-minimal.ll
@@ -1,4 +1,4 @@
-; RUN: lli --jit-kind=orc-lazy --per-module-lazy \
+; RUN: lli --jit-kind=orc-lazy --per-module-lazy --jit-linker=rtdyld \
 ; RUN:     --generate=__dump_jit_debug_descriptor %s | FileCheck %s
 ;
 ; RUN: lli --jit-kind=orc-lazy --per-module-lazy --jit-linker=jitlink \

diff  --git a/llvm/test/ExecutionEngine/OrcLazy/debug-objects-elf-minimal.ll b/llvm/test/ExecutionEngine/OrcLazy/debug-objects-elf-minimal.ll
index 59da62baf936..3bf1a98268f9 100644
--- a/llvm/test/ExecutionEngine/OrcLazy/debug-objects-elf-minimal.ll
+++ b/llvm/test/ExecutionEngine/OrcLazy/debug-objects-elf-minimal.ll
@@ -1,4 +1,6 @@
-; RUN: lli --jit-kind=orc-lazy --per-module-lazy \
+; In-memory debug-object contains some basic DWARF
+;
+; RUN: lli --jit-kind=orc-lazy --per-module-lazy --jit-linker=rtdyld \
 ; RUN:     --generate=__dump_jit_debug_objects %s | llvm-dwarfdump --
diff  - | FileCheck %s
 ;
 ; RUN: lli --jit-kind=orc-lazy --per-module-lazy --jit-linker=jitlink \
@@ -30,6 +32,18 @@
 ; CHECK:                 DW_AT_byte_size	(0x04)
 ; CHECK:   NULL
 
+; Text section of the in-memory debug-object has a non-null load-address
+;
+; RUN: lli --jit-kind=orc-lazy --per-module-lazy --jit-linker=rtdyld \
+; RUN:     --generate=__dump_jit_debug_objects %s | llvm-objdump --section-headers - | \
+; RUN:     FileCheck --check-prefix=CHECK_LOAD_ADDR %s
+;
+; RUN: lli --jit-kind=orc-lazy --per-module-lazy --jit-linker=jitlink \
+; RUN:     --generate=__dump_jit_debug_objects %s | llvm-objdump --section-headers - | \
+; RUN:     FileCheck --check-prefix=CHECK_LOAD_ADDR %s
+;
+; CHECK_LOAD_ADDR-NOT: {{[0-9]*}} .text {{.*}} 0000000000000000 TEXT
+
 target triple = "x86_64-unknown-unknown-elf"
 
 ; Built-in symbol provided by the JIT


        


More information about the llvm-commits mailing list