projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dafd828
)
[ELF] - Add test to check we don't crash when tracing reserved symbol.
author
George Rimar
<grimar@accesssoftek.com>
Thu, 5 Jul 2018 12:48:29 +0000
(12:48 +0000)
committer
George Rimar
<grimar@accesssoftek.com>
Thu, 5 Jul 2018 12:48:29 +0000
(12:48 +0000)
This is to test the following line of code:
https://github.com/llvm-mirror/lld/blob/master/ELF/SymbolTable.cpp#L601
Without that line linker would crash.
llvm-svn: 336345
lld/test/ELF/trace-symbols.s
patch
|
blob
|
history
diff --git
a/lld/test/ELF/trace-symbols.s
b/lld/test/ELF/trace-symbols.s
index
6f8436a
..
b5c1ddc
100644
(file)
--- a/
lld/test/ELF/trace-symbols.s
+++ b/
lld/test/ELF/trace-symbols.s
@@
-76,6
+76,9
@@
# RUN: FileCheck -check-prefix=STARTLIB %s
# STARTLIB: trace-symbols.s.tmp1: reference to bar
+## Check we do not crash when trying to trace special symbol.
+# RUN: not ld.lld -trace-symbol=_end %t -o /dev/null
+
.hidden hsymbol
.globl _start
.type _start, @function