xref: /llvm-project/lld/test/ELF/linkerscript/merge-nonalloc.s (revision f0374e7db2dd6effa9d38894522e7fcc6ebe53ac)
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3# RUN: echo "SECTIONS { .text : { *(.text) *(.nonalloc) } }" > %t.script
4# RUN: ld.lld -shared -o %t.exe %t.script %t.o
5# RUN: llvm-objdump --syms %t.exe | FileCheck %s
6
7# CHECK: .text 0000000000000000 nonalloc_start
8
9_start:
10  nop
11
12.section .nonalloc,"",@progbits
13nonalloc_start:
14  .long 0xcafe
15