Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P198
tls-align.c
Active
Public
Actions
Authored by
jrtc27
on Jul 30 2018, 3:10 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F3626692: tls-align.c
Jul 30 2018, 3:10 PM
2018-07-30 15:10:42 (UTC+0)
Subscribers
None
/* Compile and link as a dynamic executable. */
#include
<stdio.h>
__thread
int
aligned_var_ie
__attribute__
((
aligned
(
4096
),
tls_model
(
"initial-exec"
)))
=
0x420043
;
__thread
int
aligned_var_le
__attribute__
((
aligned
(
4096
),
tls_model
(
"local-exec"
)))
=
0x470048
;
int
main
(
int
argc
,
char
**
argv
)
{
printf
(
"&aligned_var_ie: 0x%lx
\n
"
,
(
long
)
&
aligned_var_ie
);
printf
(
"aligned_var_ie: 0x%x
\n
"
,
aligned_var_ie
);
printf
(
"&aligned_var_le: 0x%lx
\n
"
,
(
long
)
&
aligned_var_le
);
printf
(
"aligned_var_le: 0x%x
\n
"
,
aligned_var_le
);
}
Event Timeline
jrtc27
created this paste.
Jul 30 2018, 3:10 PM
2018-07-30 15:10:42 (UTC+0)
jrtc27
created this object in space
S1 Global
.
jrtc27
created this object with edit policy "
jrtc27 (Jessica Clarke)
".
br
mentioned this in
D16510: Rework rtld's TLS Variant I implementation to match r326794
.
Aug 8 2018, 1:19 PM
2018-08-08 13:19:32 (UTC+0)
Log In to Comment