Skip to content
Commit c6b01653 authored by Szabolcs Nagy's avatar Szabolcs Nagy
Browse files

elf: Fix failure handling in _dl_map_object_from_fd



The failure paths in _dl_map_object_from_fd did not clean every
potentially allocated resource up.

Handle l_phdr, l_libname and mapped segments in the common failure
handling code.

There are various bits that may not be cleaned properly on failure
(e.g. executable stack, incomplete dl_map_segments) fixing those
need further changes.

Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent cb5648b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment