From 19cf43bed69d9952c39391f42f22114afb3a0d3f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 17 Mar 2000 02:17:59 +0000 Subject: Update. 2000-03-16 Ulrich Drepper * elf/Makefile: Add rules to compile and rune constload1 test. * elf/constload1.c: New file. * elf/constload2.c: New file. * elf/constload3.c: New file. --- elf/constload2.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 elf/constload2.c (limited to 'elf/constload2.c') diff --git a/elf/constload2.c b/elf/constload2.c new file mode 100644 index 0000000..f109838 --- /dev/null +++ b/elf/constload2.c @@ -0,0 +1,24 @@ +#include + +extern int bar (void); + +void *h; + +int +foo (void) +{ + return 42 + bar (); +} + +int +baz (void) +{ + return -21; +} + +void +__attribute__ ((__constructor__)) +init (void) +{ + h = dlopen ("constload3.so", RTLD_GLOBAL | RTLD_LAZY); +} -- cgit v1.1