1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o 3# RUN: echo "-sectcreate 1.1" >%t1 4# RUN: echo "-sectcreate 1.2" >%t2 5# RUN: echo "-sectcreate 2" >%t3 6# RUN: %lld \ 7# RUN: -sectcreate SEG SEC1 %t1 \ 8# RUN: -sectcreate SEG SEC2 %t3 \ 9# RUN: -sectcreate SEG SEC1 %t2 \ 10# RUN: -o %t %t.o 11# RUN: llvm-objdump -s %t | FileCheck %s 12 13# CHECK: Contents of section __TEXT,__text: 14# CHECK: Contents of section __DATA,__data: 15# CHECK: my string!. 16# CHECK: Contents of section SEG,SEC1: 17# CHECK: -sectcreate 1.1. 18# CHECK: -sectcreate 1.2. 19# CHECK: Contents of section SEG,SEC2: 20# CHECK: -sectcreate 2. 21 22.text 23.global _main 24_main: 25 mov $0, %eax 26 ret 27 28.data 29.global my_string 30my_string: 31 .string "my string!" 32