view lld/test/ELF/icf10.s @ 192:d7606dcf6fce

Added tag llvm10 for changeset 0572611fdcc8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2020 18:01:34 +0900
parents 1d019706d866
children 1f2b6ac9f198
line wrap: on
line source

# 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