[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
Mon Nov 27 08:33:06 GMT 2023


--- Comment #37 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #36)
> make sure it will fit on a system with only 2 GB of RAM.

it fits in a system with <1GB.
> > e.g. the memory mappings at startup of a simple static-linked binary:
> >     Start Addr           End Addr       Size     Offset objfile
> >     0x10000000         0x100b0000    0xb0000        0x0 /home/jacob/a.out
> >     0x100b0000         0x100d0000    0x20000    0xa0000 /home/jacob/a.out
> good. fits in 2GB RAM.
> > 0x7ffff7fe0000     0x7ffff8000000    0x20000        0x0 [vdso]
> > 0x7ffffffd0000     0x800000000000    0x30000        0x0 [stack]
> cut those back to 0x3fff_xxxx to fit into 2GB RAM systems.

no need, there's a dict that translates, so if we wanted, we could put a memory
block in kernel space too. this needs no particular memory addresses on the
host. this also allows you to have multiple MemMMap instances simultaneously
too (handy cuz we don't specifically destroy them, just relying on Python's GC)

if we were extra crazy and wanted to implement RV128, we could do that too
(with minor adjustments since 2**64 and similar are hard-coded right now).

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

More information about the libre-soc-bugs mailing list