repo.or.cz
/
nacl-binutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Set OSABI field back to 0 (SysV), to avoid interoperability problems
[nacl-binutils.git]
/
ld
/
testsuite
/
ld-pie
/
weakundef.c
blob
c206781a4fb53cd1eb3ab1596308443d48f4db9b
1
#include <stdio.h>
2
3
#pragma weak undef_func
4
5
extern
int
undef_func
(
void
);
6
int
(*
ptr_to_func
)(
void
) =
undef_func
;
7
8
int
9
main
(
void
)
10
{
11
if
(
ptr_to_func
==
NULL
)
12
printf
(
"PASSED
\n
"
);
13
14
return
0
;
15
}