1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t 3 4# RUN: ld.lld -o %t.out %t --oformat binary 5# RUN: od -t x1 -v %t.out | FileCheck %s 6# CHECK: 000000 90 11 22 00 00 00 00 00 7# CHECK-NOT: 00000010 8 9## Check case when linkerscript is used. 10# RUN: echo "SECTIONS { . = 0x1000; }" > %t.script 11# RUN: ld.lld -o %t2.out --script %t.script %t --oformat binary 12# RUN: od -t x1 -v %t2.out | FileCheck %s 13 14# RUN: echo "SECTIONS { }" > %t.script 15# RUN: ld.lld -o %t2.out --script %t.script %t --oformat binary 16# RUN: od -t x1 -v %t2.out | FileCheck %s 17 18# RUN: not ld.lld -o %t3.out %t --oformat foo 2>&1 \ 19# RUN: | FileCheck %s --check-prefix ERR 20# ERR: unknown --oformat value: foo 21 22.text 23.align 4 24.globl _start 25_start: 26 nop 27 28.section .mysec.1,"ax" 29.byte 0x11 30 31.section .mysec.2,"ax" 32.byte 0x22 33