summaryrefslogtreecommitdiff
path: root/src/usertestelf.c
diff options
context:
space:
mode:
authordzwdz2022-07-18 18:21:06 +0200
committerdzwdz2022-07-18 18:21:06 +0200
commit121794214fd5ae36609c30418dfaf1a073b8784c (patch)
tree9e51a8cadfb739930024ddfc6015b9e8f26281e0 /src/usertestelf.c
parent9a41e57c2edeb32ae3cd530e761133883d491075 (diff)
user/elf: find free space for PIEs
Diffstat (limited to 'src/usertestelf.c')
-rw-r--r--src/usertestelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usertestelf.c b/src/usertestelf.c
index c3ab289..54a397c 100644
--- a/src/usertestelf.c
+++ b/src/usertestelf.c
@@ -33,7 +33,6 @@ static struct Elf64_Dyn *dyn_gettag(Elf64_Xword tag) {
}
static void reloc(void) {
- printf("hi?\n");
// TODO DT_REL
if (dyn_gettag(DT_PLTGOT) || dyn_gettag(DT_JMPREL)) {
printf("elf: unimplemented tag in _DYNAMIC\n");
@@ -61,6 +60,7 @@ static void reloc(void) {
}
int main(void) {
+ printf("loaded at %x\n", &_image_base);
reloc();
printf(str);
printf(str2);