[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:50:04 BST 2023


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

--- Comment #14 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #13)
> (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

starti stops the program at the first insn ... it doesn't even run any ld.so
code yet, so, unless there's special kernel-level caching, ld.so's cache is
irrelevant.

I compared the bytes in memory to the bytes on disk (which afaict are not
changed by any ld.so shenanigans), they are identical.

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


More information about the libre-soc-bugs mailing list