summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/merge-nonalloc.s
blob: 7c48d3bc6cd0e74181ff6dfc245db76348cc75ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: echo "SECTIONS { .text : { *(.text) *(.nonalloc) } }" > %t.script
# RUN: ld.lld -shared -o %t.exe %t.script %t.o
# RUN: llvm-objdump -syms %t.exe | FileCheck %s

# CHECK: .text 00000000 nonalloc_start

_start:
  nop

.section .nonalloc,"",@progbits
nonalloc_start:
  .long 0xcafe
OpenPOWER on IntegriCloud