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
8# BIN-NEXT: 0000001
9
10## The same but without OMAGIC.
11# RUN: ld.lld -Ttext 0x100 -o %t.out %t --oformat binary
12# RUN: od -t x1 -v %t.out | FileCheck %s --check-prefix=BIN
13
14.text
15.globl _start
16_start:
17 nop
18