Skip to content
Snippets Groups Projects
Commit 35322d9e authored by Vivek Das Mohapatra's avatar Vivek Das Mohapatra
Browse files

set_elf_constraints: dlopen() is not safe inside a dlmopen() namespace

This can segfault, but depends on the exact artefacts that come out
of the compiler. dlmopen(LM_ID_BASE…) should be safe enough though.

In addition there's no point in walking the full code path again:
It isn't possible for the elf class & machine to change at runtime
so we might as well cache the results and return early for subsequent
calls.
parent 47118708
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment