commit | ebef121c1f5cd813489c823c81834f83e7f5fb4e | [log] [tgz] |
---|---|---|
author | Jerome Forissier <jerome.forissier@linaro.org> | Thu Aug 01 18:08:24 2019 +0200 |
committer | Jérôme Forissier <jerome.forissier@linaro.org> | Fri Aug 23 18:47:16 2019 +0200 |
tree | 031bfc745d3dec8315fdb49ef2549e44d829ebe8 | |
parent | 791ee55c91758bc4e1379755024af64bc1a53189 [diff] |
core, ldelf: add support for runtime loading of shared libraries This commit prepares the introduction of libdl, a dynamic linking library which will allow TAs to load shared libraries at run time, and resolve symbols on demand. It adds the following function to the system PTA, inspired from the POSIX dlopen() and dlsym(): - system_dlopen(): takes a UUID and flags. Performs an upcall into ldelf which then uses the usual system PTA functions to load an map the requested library into the address space of the calling TA. - system_dlsym(): takes a UUID and a symbol name. The symbol is looked up in the library specified by UUID by calling into ldelf. If UUID is all zeros, all the mapped binaries are searched. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers