[llvm] 6e58539 - [JITLink] Add missing symbols for ELF ehframe testcase, re-enable on Windows.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 31 17:24:32 PST 2021


Author: Lang Hames
Date: 2021-02-01T12:24:24+11:00
New Revision: 6e58539659aea0ee621c7e267d825aa82d4e7e96

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

LOG: [JITLink] Add missing symbols for ELF ehframe testcase, re-enable on Windows.

This testcase was failing on windows due to missing definitions. This commit
adds definitions of the missing symbols (as absolute symbols) to eliminate the
errors.

Added: 
    

Modified: 
    llvm/test/ExecutionEngine/JITLink/X86/ELF_ehframe_basic.s

Removed: 
    


################################################################################
diff  --git a/llvm/test/ExecutionEngine/JITLink/X86/ELF_ehframe_basic.s b/llvm/test/ExecutionEngine/JITLink/X86/ELF_ehframe_basic.s
index 170843b88299..7e14d88b8054 100644
--- a/llvm/test/ExecutionEngine/JITLink/X86/ELF_ehframe_basic.s
+++ b/llvm/test/ExecutionEngine/JITLink/X86/ELF_ehframe_basic.s
@@ -1,9 +1,13 @@
 # REQUIRES: asserts
-# UNSUPPORTED: system-windows
 # RUN: llvm-mc -triple=x86_64-unknown-linux -position-independent \
 # RUN:     -filetype=obj -o %t %s
 # RUN: llvm-jitlink -debug-only=jitlink -define-abs bar=0x01 \
-# RUN:     -define-abs _ZTIi=0x02 -noexec %t 2>&1 | FileCheck %s
+# RUN:     -define-abs _ZTIi=0x02 -define-abs __cxa_throw=0x03 \
+# RUN:     -define-abs __cxa_end_catch=0x04 \
+# RUN:     -define-abs __gxx_personality_v0=0x05 \
+# RUN      -define-abs __cxa_begin_catch=0x06 \
+# RUN:     -define-abs __cxa_allocate_exception=0x07 \
+# RUN:     -noexec %t 2>&1 | FileCheck %s
 #
 # FIXME: This test should run on windows. Investigate spurious
 # 'note: command had no output on stdout or stderr' errors, then re-enable.


        


More information about the llvm-commits mailing list