Ben Dunbobbin | 0b95d37 | 2017-09-12 22:41:45 | [diff] [blame] | 1 | # REQUIRES: x86 |
2 | # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o | ||||
3 | # RUN: ld.lld %t.o -o %t1 --gc-sections | ||||
4 | # RUN: llvm-objdump -s %t1 | FileCheck %s | ||||
5 | |||||
6 | # CHECK: Contents of section .noalloc: | ||||
7 | # 0000 00000000 00000000 ........ | ||||
8 | |||||
9 | .section .text._start,"ax",@progbits | ||||
10 | .globl _start | ||||
11 | _start: | ||||
12 | retq | ||||
13 | |||||
14 | .type unused,@object | ||||
15 | .comm unused,4,4 | ||||
16 | |||||
17 | .section .noalloc,"",@progbits | ||||
18 | .quad unused |