diff options
| author | George Rimar <grimar@accesssoftek.com> | 2018-08-13 10:28:00 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2018-08-13 10:28:00 +0000 |
| commit | c1ef96f593adc6bcf4f63ceeb5d0748e757d15ee (patch) | |
| tree | 4b2f77e54e3e2141b0b1f6aa521eddca0d7594ea | |
| parent | 6679121556e4b3ca3317a52a69dba7134b25d7dc (diff) | |
| download | bcm5719-llvm-c1ef96f593adc6bcf4f63ceeb5d0748e757d15ee.tar.gz bcm5719-llvm-c1ef96f593adc6bcf4f63ceeb5d0748e757d15ee.zip | |
[LLD][ELF] - Update test case to check the error message reported. NFC.
This updates znotext-plt-relocations-protected.s test case
(adds a file symbol) to check how the error message is built.
It allows to cover/test the following line:
https://github.com/llvm-mirror/lld/blob/master/ELF/Relocations.cpp#L79
llvm-svn: 339550
| -rw-r--r-- | lld/test/ELF/znotext-plt-relocations-protected.s | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lld/test/ELF/znotext-plt-relocations-protected.s b/lld/test/ELF/znotext-plt-relocations-protected.s index 4fd8065a287..37724e74db2 100644 --- a/lld/test/ELF/znotext-plt-relocations-protected.s +++ b/lld/test/ELF/znotext-plt-relocations-protected.s @@ -4,7 +4,12 @@ # RUN: ld.lld %t2.o -o %t2.so -shared # RUN: not ld.lld -z notext %t.o %t2.so -o /dev/null 2>&1 | FileCheck %s -# CHECK: error: cannot preempt symbol: foo +# CHECK: error: cannot preempt symbol: foo +# CHECK-NEXT: >>> defined in {{.*}}2.so +# CHECK-NEXT: >>> referenced by test.cpp +# CHECK-NEXT: >>> {{.*}}.o:(.text+0x0) + +.file "test.cpp" .global _start _start: |

