27 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t14# RUN: ld.lld %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s5 6# Check that ICF does not merge 2 sections which relocations7# refer to symbols that live in sections of the different types8# (regular input section and mergeable input sections in this case).9 10# CHECK-NOT: selected11 12.section .text13.globl _start14_start:15 ret16 17.section .rodata.str,"aMS",@progbits,118.globl rodata19rodata:20.asciz "foo"21 22.section .text.foo, "ax"23.quad rodata24 25.section .text.bar, "ax"26.quad _start27