xref: /llvm-project-15.0.7/lld/test/ELF/icf-comdat.s (revision f2a8bccf)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2
3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4# RUN: ld.lld %t -o %t2 --icf=all --verbose | FileCheck %s
5
6# CHECK: selected .text.f1
7# CHECK:   removed .text.f2
8
9.globl _start, f1, f2
10_start:
11  ret
12
13.section .text.f1,"ax"
14f1:
15  mov $60, %rax
16  mov $42, %rdi
17  syscall
18
19.section .text.f2,"axG",@progbits,foo,comdat
20f2:
21  mov $60, %rax
22  mov $42, %rdi
23  syscall
24

served by {OpenGrok

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