2 ## The address of a symbol assignment after a non-SHF_ALLOC section equals the
3 ## end address of the last SHF_ALLOC section.
5 # RUN: echo '.section .nonalloc,""; .quad 0' \
6 # RUN: | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t
7 # RUN: ld.lld -o %t2 --script %s %t
8 # RUN: llvm-objdump --section-headers -t %t2 | FileCheck %s
11 # CHECK: .text 00000000 0000000000000120
12 # CHECK: .nonalloc 00000008 0000000000000000
14 # CHECK: SYMBOL TABLE:
15 # CHECK: 0000000000000120 g .nonalloc 0000000000000000 Sym
20 .nonalloc : { *(.nonalloc) }