diff options
author | johannst <johannes.stoelp@gmail.com> | 2021-04-21 23:41:59 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2021-04-21 23:41:59 +0200 |
commit | 85230524414b6d27664bf77c8584bfeced6c71cb (patch) | |
tree | a407d634cbd379dbdf4451fee4abfd64aeaa5f67 /04_dynld_nostd/libgreet.c | |
parent | 1df4dfdcdbbaef7e5b32c5c0bfadec02b3ccd6f0 (diff) | |
download | dynld-85230524414b6d27664bf77c8584bfeced6c71cb.tar.gz dynld-85230524414b6d27664bf77c8584bfeced6c71cb.zip |
add support to resolve all relocations in PLT & RELA tables; add global variable as example to libgreet.so
Diffstat (limited to '04_dynld_nostd/libgreet.c')
-rw-r--r-- | 04_dynld_nostd/libgreet.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/04_dynld_nostd/libgreet.c b/04_dynld_nostd/libgreet.c index f2a96a3..439e236 100644 --- a/04_dynld_nostd/libgreet.c +++ b/04_dynld_nostd/libgreet.c @@ -1,9 +1,13 @@ // Copyright (c) 2020 Johannes Stoelp +int gCalled = 0; + const char* get_greet() { + ++gCalled; return "Hello from libgreet.so!"; } const char* get_greet2() { + ++gCalled; return "Hello 2 from libgreet.so!"; } |