summaryrefslogtreecommitdiff
path: root/test/ldso/howdy.c
blob: 343c81d7c28b0b47c8dd3bf4f3b6d346340c8c30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>

int howdy(const char *s)
{
	return printf("howdy: %s\n", s);
}

void __attribute__((constructor)) howdy_ctor(void)
{
	printf("I am the libhowdy constructor!\n");
}

void __attribute__((destructor)) howdy_dtor(void)
{
	printf("I am the libhowdy destructor!\n");
}