1# REQUIRES: x86 2## The address of a symbol assignment after a non-SHF_ALLOC section equals the 3## end address of the last SHF_ALLOC section. 4 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 9 10# CHECK: Sections: 11# CHECK: .text 00000000 0000000000000120 12# CHECK: .nonalloc 00000008 0000000000000000 13 14# CHECK: SYMBOL TABLE: 15# CHECK: 0000000000000120 g .nonalloc 0000000000000000 Sym 16 17SECTIONS { 18 . = SIZEOF_HEADERS; 19 .text : { *(.text) } 20 .nonalloc : { *(.nonalloc) } 21 Sym = .; 22} 23