mcst-linux-kernel/glibc-2.35/elf/order2mod2.c

19 lines
221 B
C

#include <stdio.h>
extern int foo (void);
extern int bar (void);
void
__attribute__ ((constructor))
init (void)
{
(void) (foo () - bar ());
}
static void
__attribute__ ((destructor))
fini (void)
{
putchar ('2');
}