attempts at reading an elf file

This commit is contained in:
2025-04-19 00:31:36 +03:00
parent e064818c9d
commit 69416bd25a
4 changed files with 214 additions and 190 deletions

View File

@@ -17,15 +17,8 @@ int main(int argc, char *argv[]) {
int modified = -1;
while (modified != 0) {
// printf("==========================\n");
// printf("main address: %p\n", main);
// printf("minimal_lib::getNewValue address: %p\n", minimal_lib::getNewValue);
// printf("minimal_lib::otherValue address: %p\n", &minimal_lib::otherValue);
// printf("==========================\n");
// printf("");
modified = minimal_lib::getNewValue(5);
printf("getModified(5): %d\n", modified);
printf("getNewValue(5): %d\n", modified);
std::this_thread::sleep_for(std::chrono::seconds(1));
printf("otherValue: %d\n", minimal_lib::otherValue++);