projects
/
platform
/
upstream
/
glibc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Set constructor/destructor priority to 1000
[platform/upstream/glibc.git]
/
elf
/
order.c
1
#include <unistd.h>
2
3
void init (void) __attribute__ ((constructor));
4
void
5
__attribute__ ((constructor))
6
init (void)
7
{
8
write (1, "4", 1);
9
}
10
11
void fini (void) __attribute__ ((destructor));
12
void
13
__attribute__ ((destructor))
14
fini (void)
15
{
16
write (1, "5", 1);
17
}
18
19
extern int dep1 (void);
20
21
int
22
main (void)
23
{
24
return dep1 () != 42;
25
}