mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-15 15:40:12 +00:00
a850e77f3f
* elf/loadfail.c: Little cosmetic changes to avoid warnings. * elf/loadtest.c: Likewise. * elf/multiload.c: Likewise. * elf/next.c: Likewise. * elf/nodelete.c: Likewise. * elf/noload.c: Likewise. * elf/order.c: Likewise. * elf/origtest.c: Likewise. * elf/preloadtest.c: Likewise. * elf/restest1.c: Likewise.
26 lines
330 B
C
26 lines
330 B
C
#include <unistd.h>
|
|
|
|
void init (void) __attribute__ ((constructor));
|
|
void
|
|
__attribute__ ((constructor))
|
|
init (void)
|
|
{
|
|
write (1, "4", 1);
|
|
}
|
|
|
|
void fini (void) __attribute__ ((destructor));
|
|
void
|
|
__attribute__ ((destructor))
|
|
fini (void)
|
|
{
|
|
write (1, "5", 1);
|
|
}
|
|
|
|
extern int dep1 (void);
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
return dep1 () != 42;
|
|
}
|