]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/znotext-plt-relocations-protected.s
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / znotext-plt-relocations-protected.s
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/znotext-plt-relocations-protected.s -o %t2.o
4 # RUN: ld.lld %t2.o -o %t2.so -shared
5 # RUN: not ld.lld -z notext %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s
6
7 # CHECK: error: cannot preempt symbol: foo
8
9 .global _start
10 _start:
11  .long foo - .