xref: /llvm-project-15.0.7/lld/test/ELF/linkerscript/icf.s (revision bacf751a)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2
3# RUN: echo "foo = 1; bar = 2;" > %t.script
4# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
5# RUN: ld.lld %t.o %t.script -o %t --icf=all --print-icf-sections | count 0
6
7.section .text.foo,"ax",@progbits
8jmp foo
9
10.section .text.bar,"ax",@progbits
11jmp bar
12

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026