I’d like to get a few comments on how RLP works in 4.3.
What I want to do is to load multiple RLP-ready images. I understand this is doable by writing memory content directly (by using AddressSpace class), and then explicitly defining function start addresses. Quite inconvenient, especially if images are recompiled from time to time.
Now, RuntimeLoadableProcedures class can parse an ELF file, but it is using static methods, so there’s no way to select a specific image. I understand it works correctly only with the last image that was laoded by calling LoadElfImage() method.
But I still want to use multiple ELFs. Are there any reasons why this code wouldn’t work?
RuntimeLoadableProcedures.LoadElfImage(image1); RuntimeLoadableProcedures.InitializeBssRegion(); var procedure1=new RuntimeLoadableProcedures.NativeFunction("Procedure1"); RuntimeLoadableProcedures.LoadElfImage(image2); RuntimeLoadableProcedures.InitializeBssRegion(); var procedure2=new RuntimeLoadableProcedures.NativeFunction("Procedure2");