aboutsummaryrefslogblamecommitdiff
path: root/test/ELF/comment-gc.s
blob: 8018ff89bbf9ba10b552b3dd6df7e69d07228bc2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                         
# 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:  0000 00666f6f 00626172 004c4c44 20312e30 .foo.bar.LLD 1.0
# CHECK-NEXT:  0010 00 .

.ident "foo"

.globl _start
_start:
  nop