21 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# differs in addend only.8 9# CHECK-NOT: selected10 11.section .text12.globl _start13_start:14 ret15 16.section .text.foo, "ax"17.quad _start + 118 19.section .text.bar, "ax"20.quad _start + 221