diff options
author | Andrew Kaster <andrewdkaster@gmail.com> | 2019-12-31 16:43:11 -0500 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-01 17:48:41 +0100 |
commit | b6590b7f83ebfe8937a32f0cfef9e002aadb70de (patch) | |
tree | f08e13137595aa25db6d0c61f98210eb0dc9f910 /.gitignore | |
parent | 21161342ef18f3819e3c36689f469f1808358738 (diff) | |
download | serenity-b6590b7f83ebfe8937a32f0cfef9e002aadb70de.zip |
Demos: Add a dynamic linking demo to show off dlfcn methods
The LinkDemo program calls dlopen/dlsym/dlclose to try and load
a dyanmic library from /usr/lib. It read a global variable and
calls a global function (extern "C" of course :) ).
There a few hacks left in the LinkLib dynamic library, however.
In order to get the linker to stop complaining, we have to use
-nostartfiles -ffreestanding otherwise it will link crt0.o to our
shared object, which is definitely not right as the _init function
for a main program (that calls main) is not suitable for our lib
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore index 8490cd252f..4ff7aa74e6 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ *.o *.ao *.a - +*.so *.d *.swp |