bolt/deps/llvm-18.1.8/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_comdat.s
2025-02-14 19:21:04 +01:00

27 lines
380 B
ArmAsm

// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t
// RUN: llvm-jitlink -noexec %t
.section .foo,"axG",@progbits,g1,comdat
.globl g1
g1:
call test1
retq
.section .baz,"axG",@progbits,g1,comdat
test1:
retq
.section .bar,"axG",@progbits,g2,comdat
.globl g2
g2:
call test2
retq
.section .baz,"axG",@progbits,g2,comdat
test2:
retq
.text
.globl main
main:
retq