repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix missing dependencies and ensure correct CPPFLAGS.
[glibc.git]
/
elf
/
tst-unique1mod1.c
blob
16de28d25e7b90732523b123016f0118cb3768e7
1
#include <config.h>
2
3
#ifdef HAVE_ASM_UNIQUE_OBJECT
4
# define S(s) _S (s)
5
# define _S(s) #s
6
7
asm
(
".data;"
8
S
(
ASM_GLOBAL_DIRECTIVE
)
" var
\n
"
9
".type var, "
S
(
ASM_TYPE_DIRECTIVE_PREFIX
)
"gnu_unique_object
\n
"
10
".size var, 4
\n
"
11
"var:.zero 4
\n
"
12
".previous"
);
13
extern
int
var
;
14
15
int
*
16
f
(
void
)
17
{
18
var
=
1
;
19
return
&
var
;
20
}
21
#endif