Skip to content
Commit 88361b40 authored by H.J. Lu's avatar H.J. Lu
Browse files

elf: Copy l_addr/l_ld when adding ld.so to a new namespace



When add ld.so to a new namespace, we don't actually load ld.so.  We
create a new link map and refers the real one for almost everything.
Copy l_addr and l_ld from the real ld.so link map to avoid GDB warning:

warning: .dynamic section for ".../elf/ld-linux-x86-64.so.2" is not at the expected address (wrong library or version mismatch?)

when handling shared library loaded by dlmopen.

Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent ee874f44
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