[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
Thu Nov 16 07:11:37 GMT 2023


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

Jacob Lifshay <programmerjake at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |IN_PROGRESS

--- Comment #19 from Jacob Lifshay <programmerjake at gmail.com> ---
started working on implementing the memory allocator needed for mmap/brk
support, very much WIP:

https://git.libre-soc.org/?p=openpower-isa.git;a=shortlog;h=refs/heads/1169-elf-support

I started out building a memory allocator, but forgot it needs to support
mmap-ping files too, not only anonymous memory, so I'm partway through changing
it to support that.

I also track a designated memory block (mmap_emu_data_block) that brk adjusts
the size of.

Oh, i just thought of this while writing this comment, since it tracks page
permissions for safety reasons (so python doesn't segfault), i need to support
the intersection, not union, of permission flags for mmaps within an emulated
page (emulated pages are 64kB, the host system possibly has smaller pages) --
these are *not* the same pages as the powerpc MMU has, they're just for
preventing segfaults and catching bugs.

it'd probably be easiest to require at most one mmap per emulated page.

(this is all very hard to describe since we have pages and blocks and mmaps all
at different levels and each level is a completely separate thing...)

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


More information about the libre-soc-bugs mailing list