3 # RUN: llvm-mc -filetype=obj -triple=i686 %s -o %t.o
4 # RUN: ld.lld --icf=all %t.o -o /dev/null --print-icf-sections 2>&1 | FileCheck %s
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-freebsd %s -o %t.o
6 # RUN: ld.lld --icf=all %t.o -o /dev/null --print-icf-sections 2>&1 | FileCheck %s
8 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o --crel
9 # RUN: ld.lld --icf=all %t.o -o /dev/null --print-icf-sections 2>&1 | FileCheck %s
11 # Checks that ICF does not merge 2 sections the offset of
12 # the relocations of which differ.
16 .section .text.orig,"ax"
19 .section .text.foo,"ax"
21 .reloc 0, BFD_RELOC_NONE, 0
23 .section .text.bar,"ax"
25 .reloc 1, BFD_RELOC_NONE, 0