mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 08:40:07 +00:00
3d786f1969
* elf/order2.c: New file. * elf/order2mod1.c: New file. * elf/order2mod2.c: New file. * elf/order2mod3.c: New file. * elf/order2mod4.c: New file.
19 lines
212 B
C
19 lines
212 B
C
#include <stdio.h>
|
|
|
|
extern int foo (void);
|
|
extern int bar (void);
|
|
|
|
void
|
|
__attribute__ ((constructor))
|
|
init (void)
|
|
{
|
|
foo () - bar ();
|
|
}
|
|
|
|
static void
|
|
__attribute__ ((destructor))
|
|
fini (void)
|
|
{
|
|
putchar ('2');
|
|
}
|