Richard Henderson <richard.hender...@linaro.org> writes:
> On 8/8/23 07:17, Yeqi Fu wrote: >> This commit addresses the need to parse symbols of native libraries. >> The base address of a shared library is determined by the dynamic >> linker. To simplify the process, we focus on the last three digits, >> which reside within the same page and remain unaffected by the base >> address. >> Signed-off-by: Yeqi Fu<fufuyqqq...@gmail.com> >> --- >> linux-user/elfload.c | 85 +++++++++++++++++++++++++++++++++++++++++--- >> 1 file changed, 80 insertions(+), 5 deletions(-) > > I'm not keen on this. I would much prefer the native library to be > self-contained and not rely on symbols in this fashion. Didn't we have an example build that allowed us to extend the metadata and insert string pointers into the instruction stream? Did that prove unworkable? I know there was some hoop jumping required in the inline assembler but I thought that had been solved. > > > r~ -- Alex Bennée Virtualisation Tech Lead @ Linaro