From 121794214fd5ae36609c30418dfaf1a073b8784c Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 18 Jul 2022 18:21:06 +0200 Subject: user/elf: find free space for PIEs --- src/usertestelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usertestelf.c') 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); -- cgit v1.2.3