Andrew Kaster
b6590b7f83
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
2020-01-01 17:48:41 +01:00
..
2020-01-01 17:21:43 +01:00
2019-12-31 19:31:42 +01:00
2019-12-31 13:22:43 +01:00
2019-11-27 14:06:24 +01:00
2019-12-28 02:03:49 +01:00
2019-12-20 20:02:45 +01:00
2020-01-01 12:57:00 +01:00
2019-08-06 21:09:24 +02:00
2019-11-03 13:11:43 +01:00
2019-11-26 12:54:33 +01:00
2019-12-27 02:19:55 +01:00
2020-01-01 17:48:41 +01:00
2019-11-04 14:03:14 +01:00
2019-11-04 14:03:14 +01:00
2019-10-18 15:58:06 +02:00
2019-10-18 15:58:06 +02:00
2019-08-18 07:40:02 +02:00
2019-12-29 19:08:02 +01:00
2019-12-29 19:08:02 +01:00
2020-01-01 13:21:15 +01:00
2019-12-25 22:41:34 +01:00
2019-12-25 22:41:34 +01:00
2019-09-06 15:36:54 +02:00
2019-12-15 21:29:26 +01:00
2019-12-31 19:31:42 +01:00
2019-09-06 15:36:54 +02:00
2019-11-27 14:06:24 +01:00
2019-12-29 23:01:27 +01:00
2019-12-20 22:59:11 +01:00
2019-12-24 01:28:38 +01:00
2019-11-28 21:30:20 +01:00
2019-11-23 17:27:09 +01:00
2019-12-01 16:02:58 +01:00
2019-12-26 11:43:23 +01:00
2019-12-24 02:19:59 +01:00
2019-12-27 02:15:45 +01:00
2019-11-28 21:30:20 +01:00
2019-11-28 21:07:22 +01:00
2019-08-14 06:28:53 +02:00
2019-08-14 06:28:53 +02:00
2020-01-01 17:31:41 +01:00
2019-12-31 19:31:42 +01:00
2019-11-04 14:03:14 +01:00
2019-12-12 21:59:47 +01:00
2019-12-12 21:59:47 +01:00
2019-09-28 13:59:49 +02:00
2019-12-29 19:08:02 +01:00
2020-01-01 17:31:41 +01:00
2020-01-01 16:54:21 +01:00
2019-12-19 19:15:27 +01:00
2019-12-09 20:06:47 +01:00
2019-12-20 21:03:32 +01:00
2019-08-11 16:30:43 +02:00
2019-11-12 10:26:50 +01:00
2019-12-15 12:47:53 +01:00
2019-12-31 19:31:42 +01:00
2019-11-29 21:31:17 +01:00
2020-01-01 17:31:41 +01:00
2020-01-01 16:54:21 +01:00
2019-12-27 02:15:45 +01:00
2019-12-27 02:15:45 +01:00
2019-12-29 13:16:53 +01:00
2019-12-22 12:38:01 +01:00
2019-12-22 12:38:01 +01:00