supporting self segments loading

This commit is contained in:
georgemoralis 2023-06-13 19:05:06 +03:00
parent cfa68f2f40
commit bcc6288e9e
3 changed files with 48 additions and 4 deletions

View file

@ -36,7 +36,7 @@ int main(int argc, char* argv[])
logging::init(true);//init logging
const char* const path = "videoout_basic.elf";// argv[1]; //argument 1 is the path of self file to boot
const char* const path = argv[1]; //argument 1 is the path of self file to boot
auto* linker = Singleton<Linker>::Instance();
auto *module =linker->LoadModule(path);//load main executable