2016-09-29 18:27:10 +08:00
|
|
|
# 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:
|
2017-10-01 05:28:49 +08:00
|
|
|
# CHECK-NEXT: foo..LLD 1.0.bar
|
2016-09-29 18:27:10 +08:00
|
|
|
|
|
|
|
.ident "foo"
|
|
|
|
|
|
|
|
.globl _start
|
|
|
|
_start:
|
|
|
|
nop
|