3 ms·
Very interesting, and thanks. > the running code is not even provided with a way to access itself. You can do the same thing with some ELF post-processing. I
by fwsgonzo 6y ago
Very interesting, and thanks.
> the running code is not even provided with a way to access itself.
You can do the same thing with some ELF post-processing. I have done this, and used it over several months now. It works just fine, even though there is nothing in the RISC-V standard that explicitly says this must be true.
I asked the GCC people and they consider it a bug if there's any data in the text-segment. So, at leas there is that. Maybe we can call it optional support? :)