blob: 240f1f2f32441ccda7dcbf44401d0e6a97b49ceb [file] [log] [blame]
George Rimar40c28c72016-12-03 07:23:301# 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
Fangrui Songacb66b92020-08-05 16:04:567# BIN: 0000000 90
8# BIN-NEXT: 0000001
George Rimar40c28c72016-12-03 07:23:309
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