1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 3# RUN: ld.lld -shared -z notext %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s 4 5## ICF is able to merge sections which relocations referring regular input sections 6## or mergeable sections. .eh_frame is represented with a different kind of section, 7## here we check that ICF code is able to handle and will not merge sections which 8## relocations referring .eh_frame. 9 10# CHECK-NOT: selected 11 12.section ".eh_frame", "a", @unwind 13.globl foo 14foo: 15 .quad 0 16.globl bar 17bar: 18 .quad 0 19 20.section .text.foo, "ax" 21.quad foo 22 23.section .text.bar, "ax" 24.quad bar 25