Files
clang-p2996/lld/test/ELF/linkerscript/icf.s
Peter Collingbourne 6556e6b929 ELF: Don't examine values of linker script symbols during ICF.
These symbols are declared early with the same value, so they otherwise
appear identical to ICF.

Differential Revision: https://reviews.llvm.org/D51376

llvm-svn: 340998
2018-08-29 23:43:38 +00:00

12 lines
287 B
ArmAsm

# REQUIRES: x86
# RUN: echo "foo = 1; bar = 2;" > %t.script
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: ld.lld %t.o %t.script -o %t --icf=all --print-icf-sections | count 0
.section .text.foo,"ax",@progbits
jmp foo
.section .text.bar,"ax",@progbits
jmp bar