diff options
Diffstat (limited to 'src/user/app/testelf/main.c')
-rw-r--r-- | src/user/app/testelf/main.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/user/app/testelf/main.c b/src/user/app/testelf/main.c index 93a5e11..a3e54b8 100644 --- a/src/user/app/testelf/main.c +++ b/src/user/app/testelf/main.c @@ -1,18 +1,9 @@ -#include <camellia/syscalls.h> #include <stdio.h> -#include <user/lib/elf.h> -#include <user/lib/elfload.h> -#include <unistd.h> const char *str = "Hello!\n", *str2 = "World.\n"; -__attribute__((visibility("hidden"))) -extern char _image_base[]; - int main(void) { - elf_selfreloc(); - printf("loaded at %x\n", &_image_base); - printf(str); - printf(str2); - exit(0); + printf("elftest's &main == 0x%x\n", &main); + printf("%s%s", str, str2); + return 0; } |