George Rimar | 40c28c7 | 2016-12-03 07:23:30 | [diff] [blame] | 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 | |
Fangrui Song | acb66b9 | 2020-08-05 16:04:56 | [diff] [blame] | 7 | # BIN: 0000000 90 |
| 8 | # BIN-NEXT: 0000001 |
George Rimar | 40c28c7 | 2016-12-03 07:23:30 | [diff] [blame] | 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 |