[Libre-soc-bugs] [Bug 1169] Add ELF and mmap support to ISACaller -- no dynamic linking

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Sep 22 09:37:57 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1169

--- Comment #13 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #10)

> I did some more testing and it seems like linux uses the second option on
> the talos server. no relocations seem to be performed by the kernel when
> loading /usr/bin/echo -- I tested by running gdb /usr/bin/echo and then
> running `starti` and dumping all the file mappings, comparing them to the
> file they were loaded from.

that is possibly because it detects that ld.so (see ldd /usr/bin/echo)
is already resident). i.e. you'll find it's in ld.so.cache

a better test would be to run the *ppc64* version of "gdb /usr/bin/echo"
under qemu-ppc64-user although oh wait even running gdb would load
libc6 into ld.so.cache.

i am guessing at this point, you might need a static-compiled
version of strace-ppc64 or static compiled version of gdb-ppc64 to verify
properly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list