1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
3# RUN: not %lld -o %t %t.o 2>&1 | FileCheck %s -DFILE=%t.o
4# CHECK: error: section from [[FILE]] conflicts with synthetic section __DATA_CONST,__got
5
6.globl _main
7
8.section __DATA_CONST,__got
9.space 1
10
11.text
12_main:
13  mov $0, %rax
14  ret
15