xref: /llvm-project-15.0.7/lld/test/ELF/linkerscript/comdat-gc.s (revision 052d95a6)
  • 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: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/comdat-gc.s -o %t1
5# RUN: echo "SECTIONS { .text : { *(.text*) } }" > %t.script
6# RUN: ld.lld --gc-sections --script %t.script %t %t1 -o %t2
7# RUN: llvm-readobj -sections -symbols %t2 | FileCheck -check-prefix=GC1 %s
8
9# GC1:     Name: .debug_line
10
11.file 1 "test/ELF/linkerscript/comdat_gc.s"
12.section  .text._Z3fooIiEvv,"axG",@progbits,_Z3fooIiEvv,comdat
13.loc 1 14
14  ret
15

served by {OpenGrok

Last Index Update: Tue Oct 21 18:42:31 GMT 2025