projects
/
apple
/
dyld.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
dyld-733.6.tar.gz
[apple/dyld.git]
/
unit-tests
/
test-cases
/
initializer-bounds-check
/
foo1.c
1
#include <stdio.h>
2
3
extern
void
*
initializers
[]
__asm__
(
"section$start$__DATA$__mod_init_func"
);
4
5
extern
void
altSecondInit
();
6
7
8
__attribute__
((
constructor
))
9
void
firstInit
()
10
{
11
// slam second initializer to be pointer into another dylib
12
initializers
[
1
] = &
altSecondInit
;
13
}
14