blob: 7f86ecec29b78881b4e440446a3abce09178d844 (
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
# RUN: echo "MEMORY { ram (rwx) : ORIGIN = 0, LENGTH = 2K } \
# RUN: SECTIONS { .text : { *(.text*) } > ram }" > %t.script
# RUN: ld.lld -o /dev/null --script %t.script %t
.text
.global _start
_start:
.zero 1024
.section .text.foo,"ax",%progbits
foo:
nop
|