]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/symbols-non-alloc.s
Vendor import of lld trunk r321530:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / symbols-non-alloc.s
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3
4 # RUN: echo "SECTIONS { . = SIZEOF_HEADERS; \
5 # RUN:  .text : { *(.text) }                \
6 # RUN:  .nonalloc : { *(.nonalloc) }        \
7 # RUN:  Sym = .;                            \
8 # RUN:  }" > %t.script
9 # RUN: ld.lld -o %t2 --script %t.script %t
10 # RUN: llvm-objdump -section-headers -t %t2 | FileCheck %s
11
12 # CHECK: Sections:
13 # CHECK:  .nonalloc     00000008 0000000000000000
14
15 # CHECK: SYMBOL TABLE:
16 # CHECK:  0000000000000008 .nonalloc 00000000 Sym
17
18 .section .nonalloc,""
19  .quad 0