summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/comment-gc.s
blob: 44c08fe9cef9ac08aabb4e0c4d8b6cdeed72d9ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/comment-gc.s -o %t2.o
# RUN: ld.lld %t.o %t2.o -o %t1 --gc-sections -shared
# RUN: llvm-objdump -s %t1 | FileCheck %s

# CHECK:      Contents of section .comment:
# CHECK-NEXT: foo..LLD 1.0.bar

.ident "foo"

.globl _start
_start:
  nop
OpenPOWER on IntegriCloud