reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
# REQUIRES: x86

# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-freebsd %s -o %t.o
# RUN: ld.lld --icf=all %t.o -o /dev/null --print-icf-sections 2>&1 | FileCheck %s

# Checks that ICF does not merge 2 sections the offset of
# the relocations of which differ.

# CHECK-NOT: selected

.section .text.foo,"ax"
  .quad -1
  .reloc 0, R_X86_64_NONE, 0

.section .text.bar,"ax"
  .quad -1
  .reloc 1, R_X86_64_NONE, 0