aboutsummaryrefslogtreecommitdiff
path: root/04_dynld_nostd/main.c
diff options
context:
space:
mode:
Diffstat (limited to '04_dynld_nostd/main.c')
-rw-r--r--04_dynld_nostd/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/04_dynld_nostd/main.c b/04_dynld_nostd/main.c
index 709fad0..6efa5fc 100644
--- a/04_dynld_nostd/main.c
+++ b/04_dynld_nostd/main.c
@@ -1,7 +1,6 @@
// Copyright (c) 2020 Johannes Stoelp
#include <io.h>
-#include <syscalls.h>
// API of `libgreet.so`.
extern const char* get_greet();
@@ -11,10 +10,10 @@ extern int gCalled;
void _start() {
pfmt("Running _start() @ %s\n", __FILE__);
- // Call function from libgreet.so -> generates PLT relocations.
+ // Call function from libgreet.so -> generates PLT relocations (R_X86_64_JUMP_SLOT).
pfmt("get_greet() -> %s\n", get_greet());
pfmt("get_greet2() -> %s\n", get_greet2());
- // Reference global variable from libgreet.so -> generates RELA relocation.
+ // Reference global variable from libgreet.so -> generates RELA relocation (R_X86_64_COPY).
pfmt("libgreet.so called %d times\n", gCalled);
}