[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 03:24:54 GMT 2023
https://bugs.libre-soc.org/show_bug.cgi?id=1169
--- Comment #34 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #33)
> (In reply to Jacob Lifshay from comment #32)
>
> > I think we should add mmap back in: i'm already like 90% done with a minimal
> > version of it and it makes ELF loading easier.
>
> ok great. do not spend time on "security", do not spend time
> on "safety". allocate memory. use it. done.
nah, I'm just leaving all the stuff I already implemented in there. no point in
wasting more time to delete something that's useful.
>
> if necessary allocate the (one, large but still within 32bit system range)
> memory block early with a python startup hook.
it has several blocks of memory, since stuff like the stack is always mapped at
the other end of the user address space.
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
0x7ffff7fe0000 0x7ffff8000000 0x20000 0x0 [vdso]
0x7ffffffd0000 0x800000000000 0x30000 0x0 [stack]
so I put one block at 0x7fff... up to 0x800000000000 for the stack and stuff
that likes getting mapped to high addresses and one block
starting at address 0x0 for everything else. I implemented all of that in bug
#1173.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list