blob: 93a5e11d818428b2a05ecb78d16c97bee2c893c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#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);
}
|