mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
c0c2af0799
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.
24 lines
243 B
C
24 lines
243 B
C
#include <unistd.h>
|
|
|
|
extern int dep3 (void);
|
|
|
|
static void
|
|
__attribute__ ((constructor))
|
|
init (void)
|
|
{
|
|
write (1, "1", 1);
|
|
}
|
|
|
|
static void
|
|
__attribute__ ((destructor))
|
|
fini (void)
|
|
{
|
|
write (1, "8", 1);
|
|
}
|
|
|
|
int
|
|
dep4 (void)
|
|
{
|
|
return dep3 ();
|
|
}
|