bolt/deps/llvm-18.1.8/lld/test/ELF/linkerscript/icf.s

12 lines
287 B
ArmAsm
Raw Normal View History

2025-02-14 19:21:04 +01:00
# 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