[Libre-soc-bugs] [Bug 1228] SFFS ISACaller userspace ELF support for dynamic linking and PIC

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon Dec 4 10:26:04 GMT 2023


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

--- Comment #7 from Jacob Lifshay <programmerjake at gmail.com> ---
I fixed lwarx and stwcx., and added the b/h/d versions while I was at it and
added some tests for them.

I also added a stub sync instruction, since it was missing.

I also added lqarx/stqcx. since i was adding the others anyway, but I added no
tests since I expect them to be broken due to RTp/RSp handling. I also added
some FIXME `comment2`s in the CSVs to them and lq/stq since those should be
16-byte load/stores (they're atomic after all) and use RTp/RSp, but the csv
entries don't have that.

I implemented the writev syscall, and the statically-linked glibc binary
finally printed a message:
malloc(): corrupted top size

this indicates memory corruption somewhere, which will be *fun* to debug -- or
maybe I just need to implement relocations and that'll fix it...

I rebased on master:
https://git.libre-soc.org/?p=openpower-isa.git;a=shortlog;h=7a91bc2921e3b5fff1d647d6dba0573d259fb95e

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


More information about the libre-soc-bugs mailing list