[all-commits] [llvm/llvm-project] 355983: [lli] Add a filter to avoid importing the process'...
lhames via All-commits
all-commits at lists.llvm.org
Thu Jan 2 16:08:49 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 355983103f008b094b5cdd26233eb0ed7113e7ec
https://github.com/llvm/llvm-project/commit/355983103f008b094b5cdd26233eb0ed7113e7ec
Author: Lang Hames <lhames at gmail.com>
Date: 2020-01-02 (Thu, 02 Jan 2020)
Changed paths:
M llvm/tools/lli/lli.cpp
Log Message:
-----------
[lli] Add a filter to avoid importing the process's main symbol.
If JIT'd code fails to define a main function and we import the process's
definition then we will end up recursively calling lli's main until we overflow
the stack and crash. This filter fixes the issue by ensuring that the process's
main function is never imported. This results in lli producing a much friendlier
"symbol not found" error when JIT'd code fails to define main.
More information about the All-commits
mailing list