1# REQUIRES: x86 2 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 4# RUN: ld.lld %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s 5 6# Check that ICF does not merge 2 sections which relocations 7# refer to symbols that live in sections of the different types 8# (regular input section and mergeable input sections in this case). 9 10# CHECK-NOT: selected 11 12.section .text 13.globl _start 14_start: 15 ret 16 17.section .rodata.str,"aMS",@progbits,1 18.globl rodata 19rodata: 20.asciz "foo" 21 22.section .text.foo, "ax" 23.quad rodata 24 25.section .text.bar, "ax" 26.quad _start 27