diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-03-17 02:17:59 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-03-17 02:17:59 +0000 |
commit | 19cf43bed69d9952c39391f42f22114afb3a0d3f (patch) | |
tree | 15725e3712fc919ec7d670c42ba0e66d5d41e53d /elf/constload2.c | |
parent | 13a836048c08f552187f2172cb362fb98f42c965 (diff) | |
download | glibc-19cf43bed69d9952c39391f42f22114afb3a0d3f.tar glibc-19cf43bed69d9952c39391f42f22114afb3a0d3f.tar.gz glibc-19cf43bed69d9952c39391f42f22114afb3a0d3f.tar.bz2 glibc-19cf43bed69d9952c39391f42f22114afb3a0d3f.zip |
Update.
2000-03-16 Ulrich Drepper <drepper@redhat.com>
* 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.
Diffstat (limited to 'elf/constload2.c')
-rw-r--r-- | elf/constload2.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/elf/constload2.c b/elf/constload2.c new file mode 100644 index 0000000000..f109838cb8 --- /dev/null +++ b/elf/constload2.c @@ -0,0 +1,24 @@ +#include <dlfcn.h> + +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); +} |