summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2019-12-19 20:41:59 -0800
committerLang Hames <lhames@gmail.com>2019-12-19 20:41:59 -0800
commitd9220b580b323d6b3b9f6a57c163439fad5b2bde (patch)
tree3c2a6d8538d787c8092645febb6f72c8455c07c3 /llvm/test/ExecutionEngine
parentde21704ba96fa80d3e9402f12c6505917a3885f4 (diff)
downloadbcm5719-llvm-d9220b580b323d6b3b9f6a57c163439fad5b2bde.tar.gz
bcm5719-llvm-d9220b580b323d6b3b9f6a57c163439fad5b2bde.zip
[JITLink][MachO] Fix common symbol size plumbing.
This fixes the underlying bug that was exposed by 298e183e813.
Diffstat (limited to 'llvm/test/ExecutionEngine')
-rw-r--r--llvm/test/ExecutionEngine/JITLink/X86/MachO_x86-64_relocations.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/JITLink/X86/MachO_x86-64_relocations.s b/llvm/test/ExecutionEngine/JITLink/X86/MachO_x86-64_relocations.s
index 5fabc6db121..87ed036556e 100644
--- a/llvm/test/ExecutionEngine/JITLink/X86/MachO_x86-64_relocations.s
+++ b/llvm/test/ExecutionEngine/JITLink/X86/MachO_x86-64_relocations.s
@@ -4,6 +4,11 @@
.section __TEXT,__text,regular,pure_instructions
+# Check that common symbols work.
+# jitlink-check: *{4}common_symbol = 0
+# jitlink-check: common_symbol[1:0] = 0
+.comm common_symbol,4,2
+
.align 4, 0x90
Lanon_func:
retq
OpenPOWER on IntegriCloud