1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 3# RUN: ld.lld %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s 4 5## Check that ICF does not merge sections which relocations have equal addends, 6## but different target values. 7 8# CHECK-NOT: selected 9 10.globl und 11 12.section .text 13.globl foo 14foo: 15 .byte 0 16.globl bar 17bar: 18 .byte 0 19 20.section .text.foo, "ax" 21.quad foo 22 23.section .text.bar, "ax" 24.quad bar 25