Gunnar Beutner
22ebd754d3
Kernel: Fix loading ELF images without PT_INTERP
...
Previously we'd try to load ELF images which did not have
an interpreter set with an incorrect load offset of 0, i.e. way
outside of the part of the address space where we'd expect either
the dynamic loader or the user's executable to reside.
This fixes the problem by using get_load_offset for both executables
which have an interpreter set and those which don't. Notably this
allows us to actually successfully execute the Loader.so binary:
courage:~ $ /usr/lib/Loader.so
You have invoked `Loader.so'. This is the helper program for programs
that use shared libraries. Special directives embedded in executables
tell the kernel to load this program.
This helper program loads the shared libraries needed by the program,
prepares the program to run, and runs it. You do not need to invoke
this helper program directly.
courage:~ $
2021-05-10 20:39:08 +02:00
..
2021-05-08 19:15:54 +02:00
2021-04-30 11:35:17 +02:00
2021-05-05 18:48:26 +02:00
2021-05-08 19:15:54 +02:00
2021-05-10 11:55:52 +02:00
2021-04-29 00:59:26 +02:00
2021-05-05 18:48:26 +02:00
2021-04-22 11:22:27 +02:00
2021-05-10 17:26:17 +02:00
2021-05-01 21:25:06 +02:00
2021-04-29 22:23:52 +02:00
2021-05-10 20:39:08 +02:00
2021-04-22 11:22:27 +02:00
2021-05-05 18:51:06 +02:00
2021-05-01 23:04:40 +02:00
2021-04-27 11:36:24 +02:00
2021-05-03 16:03:17 +02:00
2021-04-22 21:15:54 +02:00
2021-04-22 21:15:54 +02:00
2021-04-22 11:22:27 +02:00
2021-04-29 20:26:36 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 22:51:19 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-29 08:09:53 +02:00
2021-04-29 08:09:53 +02:00
2021-04-22 11:22:27 +02:00
2021-04-29 00:59:26 +02:00
2021-04-29 00:59:26 +02:00
2021-04-29 20:26:36 +02:00
2021-04-22 11:22:27 +02:00
2021-04-23 16:46:57 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-28 22:14:32 +02:00
2021-04-22 11:22:27 +02:00
2021-03-04 18:25:01 +01:00
2021-04-25 09:38:27 +02:00
2021-04-25 09:38:27 +02:00
2021-04-29 00:59:26 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-07 15:35:23 +02:00
2021-05-07 15:35:23 +02:00
2021-05-07 15:35:23 +02:00
2021-04-22 11:22:27 +02:00
2021-05-07 15:35:23 +02:00
2021-05-07 15:35:23 +02:00
2021-04-23 16:46:57 +02:00
2021-04-22 11:22:27 +02:00
2021-04-25 09:38:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-07 15:35:23 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-29 20:26:36 +02:00
2021-04-22 11:22:27 +02:00
2021-04-29 20:26:36 +02:00
2021-04-29 22:16:18 +02:00
2021-05-05 18:44:40 +02:00
2021-05-05 18:51:06 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-05 18:51:06 +02:00
2021-04-22 11:22:27 +02:00
2021-05-02 16:18:44 +02:00
2021-04-22 11:22:27 +02:00
2021-05-05 21:16:17 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-29 00:59:26 +02:00
2021-04-29 00:59:26 +02:00
2021-04-29 00:59:26 +02:00
2021-04-29 00:59:26 +02:00