forked from OSchip/llvm-project
20 lines
391 B
ArmAsm
20 lines
391 B
ArmAsm
# REQUIRES: x86
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
|
|
# RUN: not %lld -o %t %t.o 2>&1 | FileCheck %s -DFILE=%t.o
|
|
# CHECK: error: section from [[FILE]] conflicts with synthetic section __DATA_CONST,__got
|
|
|
|
.globl _main
|
|
|
|
.section __DATA_CONST,__got
|
|
.space 1
|
|
|
|
.data
|
|
_foo:
|
|
.space 1
|
|
|
|
.text
|
|
_main:
|
|
## make sure the GOT will be needed
|
|
pushq _foo@GOTPCREL(%rip)
|
|
ret
|