xref: /llvm-project/lld/test/ELF/comment-gc.s (revision 4f608151148db58537d5fcd74eac9034256cb01e)
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/comment-gc.s -o %t2.o
4# RUN: ld.lld %t.o %t2.o -o %t1 --gc-sections -shared
5# RUN: llvm-objdump -s %t1 | FileCheck %s
6
7# CHECK:      Contents of section .comment:
8# CHECK-NEXT: foo..LLD 1.0.bar
9# CHECK-NEXT: .{{$}}
10
11.ident "foo"
12
13.globl _start
14_start:
15  nop
16