blob: a3c7edbc61bff6877343ec33c16ee1a92948f132 [file] [log] [blame]
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
# RUN: lld -flavor darwinnew -o %t %t.o
# RUN: llvm-readobj --macho-segment %t | FileCheck %s
# CHECK: Name: __TEXT
# CHECK-NOT: }
# dyld3 assumes that the __TEXT segment starts from the file header
# CHECK: fileoff: 0
.text
.global _main
_main:
mov $0, %rax
ret