blob: de7b9659f860f542c54af01ebff9ce45c928179e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <camellia/syscalls.h>
#include <stdio.h>
#include <user/lib/elf.h>
#include <user/lib/elfload.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);
_syscall_exit(0);
}
|