Mercurial > hg > CbC > CbC_llvm
annotate lld/test/ELF/znotext-plt-relocations-protected.s @ 192:d7606dcf6fce
Added tag llvm10 for changeset 0572611fdcc8
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 14 Dec 2020 18:01:34 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 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 # CHECK-NEXT: >>> defined in {{.*}}2.so | |
9 # CHECK-NEXT: >>> referenced by test.cpp | |
10 # CHECK-NEXT: >>> {{.*}}.o:(.text+0x0) | |
11 | |
12 .file "test.cpp" | |
13 | |
14 .global _start | |
15 _start: | |
16 .long foo - . |