From c0c2af07991283edd947c5a11df162ccb486e74a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 31 Mar 2000 17:09:42 +0000 Subject: Update. 2000-03-31 Ulrich Drepper * 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. --- elf/dep1.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 elf/dep1.c (limited to 'elf/dep1.c') diff --git a/elf/dep1.c b/elf/dep1.c new file mode 100644 index 0000000000..49dc2a22d9 --- /dev/null +++ b/elf/dep1.c @@ -0,0 +1,24 @@ +#include + +extern int dep2 (void); +extern int dep4 (void); + +static void +__attribute__ ((constructor)) +init (void) +{ + write (1, "3", 1); +} + +static void +__attribute__ ((destructor)) +fini (void) +{ + write (1, "6", 1); +} + +int +dep1 (void) +{ + return dep4 () - dep2 (); +} -- cgit v1.2.3-65-gdbad