brintos

brintos / llvm-project-archived public Read only

0
0
Text · 660 B · ca47b2b Raw
23 lines · plain
1# REQUIRES: x862## The address of a symbol assignment after a non-SHF_ALLOC section equals the3## 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 %t7# RUN: ld.lld -o %t2 --script %s %t8# RUN: llvm-objdump --section-headers -t %t2 | FileCheck %s9 10# CHECK: Sections:11# CHECK:  .text         00000000 000000000000012012# CHECK:  .nonalloc     00000008 000000000000000013 14# CHECK: SYMBOL TABLE:15# CHECK:  0000000000000120 g .nonalloc 0000000000000000 Sym16 17SECTIONS {18  . = SIZEOF_HEADERS;19  .text : { *(.text) }20  .nonalloc : { *(.nonalloc) }21  Sym = .;22}23