[llvm] 0c6ee50 - [JITLink] Add testcase that was accidentally left out of 19e402d2b34.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 17 11:58:40 PDT 2021


Author: Lang Hames
Date: 2021-04-17T11:55:55-07:00
New Revision: 0c6ee502ebfb0ac9b1ba098075c4f2e502e1af80

URL: https://github.com/llvm/llvm-project/commit/0c6ee502ebfb0ac9b1ba098075c4f2e502e1af80
DIFF: https://github.com/llvm/llvm-project/commit/0c6ee502ebfb0ac9b1ba098075c4f2e502e1af80.diff

LOG: [JITLink] Add testcase that was accidentally left out of 19e402d2b34.

Added: 
    llvm/test/ExecutionEngine/JITLink/X86/MachO_same_section_name_different_segment_names.s

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/llvm/test/ExecutionEngine/JITLink/X86/MachO_same_section_name_
diff erent_segment_names.s b/llvm/test/ExecutionEngine/JITLink/X86/MachO_same_section_name_
diff erent_segment_names.s
new file mode 100644
index 0000000000000..e1f750cee7bed
--- /dev/null
+++ b/llvm/test/ExecutionEngine/JITLink/X86/MachO_same_section_name_
diff erent_segment_names.s
@@ -0,0 +1,26 @@
+# RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o %t %s
+# RUN: llvm-jitlink -noexec %t
+#
+# Check that JITLink handles MachO sections with the same section name but
+# 
diff erent segment names.
+
+	.section	__TEXT,__text,regular,pure_instructions
+	.build_version macos, 11, 0	sdk_version 11, 1
+	.globl	_main
+	.p2align	4, 0x90
+_main:                                  ## @main
+	xorl	%eax, %eax
+	retq
+
+        .section	__TEXT,__const
+        .globl _a
+_a:
+        .quad   42
+
+	.section	__DATA,__const
+	.globl	_b
+	.p2align	3
+_b:
+	.quad	42
+
+.subsections_via_symbols


        


More information about the llvm-commits mailing list