1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3
4# RUN: ld.lld -N -Ttext 0x100 -o %t.out %t --oformat binary
5# RUN: od -t x1 -v %t.out | FileCheck %s --check-prefix=BIN
6
7# BIN:      0000000 90 00 00 00 00 00 00 00
8# BIN-NEXT: 0000010
9# BIN-NOT:  0000020
10
11## The same but without OMAGIC.
12# RUN: ld.lld -Ttext 0x100 -o %t.out %t --oformat binary
13# RUN: od -t x1 -v %t.out | FileCheck %s --check-prefix=BIN
14
15.text
16.globl _start
17_start:
18 nop
19