On 01/25/2011 02:47 AM, Stefano Bonifazi wrote: > You keep getting the name of the dynamic linker from the PT_INTERP program > segment, but that gives you the absolute position of the dynamic linker > inside the machine the target binary was created in. > Here qemu-user is an emultaor used for running that binary into another > machine.. > Qemu default to usr/gnemul/ the path where the libs for the target machines > are stored... > So we need to patch the absolute dynamic linker name with the proper path..
In load_elf_interp, fd = open(path(filename), O_RDONLY); Notice the path function call. That does the translation into gnemul, given the proper configure option, or -L command-line option. r~