Files
clang-p2996/llvm/test/ExecutionEngine/JITLink/X86/ELF_comdat.s
Steven Wu 091e364866 [JITLink][ELF] Support duplicated section names from object file
ELF object files can contain duplicated sections (thus section symbols
as well), espeically when comdats/section groups are present. This patch
adds support for generating LinkGraph from object files that have
duplicated section names. This is the first step to properly model
comdats/section groups.

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D114753
2022-01-18 08:38:28 -08:00

28 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