diff options
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; +} |