diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-03-31 17:09:42 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-03-31 17:09:42 +0000 |
commit | c0c2af07991283edd947c5a11df162ccb486e74a (patch) | |
tree | 3f273e699ea34a7f07055593a5ce053b0cd9ea5d /elf/dep3.c | |
parent | 84ddc586f6d0dc289d4c99d51393c3caf019b885 (diff) | |
download | glibc-c0c2af07991283edd947c5a11df162ccb486e74a.tar glibc-c0c2af07991283edd947c5a11df162ccb486e74a.tar.gz glibc-c0c2af07991283edd947c5a11df162ccb486e74a.tar.bz2 glibc-c0c2af07991283edd947c5a11df162ccb486e74a.zip |
Update.
2000-03-31 Ulrich Drepper <drepper@redhat.com>
* elf/Makefile (distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c.
(tests): Add order.
(module-names): Add dep1, dep2, dep3, and dep4.
Add dependencies for dep* modules and order.
Define rule for order.out which checks the result.
* elf/dep1.c: New file.
* elf/dep2.c: New file.
* elf/dep3.c: New file.
* elf/dep4.c: New file.
* elf/order.c: New file.
* elf/dl-init.c: Fix type in comment.
Diffstat (limited to 'elf/dep3.c')
-rw-r--r-- | elf/dep3.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/elf/dep3.c b/elf/dep3.c new file mode 100644 index 0000000000..ec7c7d36d7 --- /dev/null +++ b/elf/dep3.c @@ -0,0 +1,21 @@ +#include <unistd.h> + +static void +__attribute__ ((constructor)) +init (void) +{ + write (1, "0", 1); +} + +static void +__attribute__ ((destructor)) +fini (void) +{ + write (1, "9\n", 2); +} + +int +dep3 (void) +{ + return 42; +} |