15 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3# RUN: echo "SECTIONS { .text : { *(.text) *(.nonalloc) } }" > %t.script4# RUN: ld.lld -shared -o %t.exe %t.script %t.o5# RUN: llvm-objdump --syms %t.exe | FileCheck %s6 7# CHECK: .text 0000000000000000 nonalloc_start8 9_start:10 nop11 12.section .nonalloc,"",@progbits13nonalloc_start:14 .long 0xcafe15