aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/rtld_lock.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2015-03-29 18:53:21 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2015-03-29 18:53:21 +0000
commit0c4f9ecde30ac34f0f849a31244158bd149bdac0 (patch)
tree12ce96618cdb26acb5fccabba2ccac920c386178 /libexec/rtld-elf/rtld_lock.h
parentba14973ac529e7f6af5d3141c82cba24e5c824b5 (diff)
downloadsrc-0c4f9ecde30ac34f0f849a31244158bd149bdac0.tar.gz
src-0c4f9ecde30ac34f0f849a31244158bd149bdac0.zip
Change compiler setting to make default visibility of the symbols for
rtld on x86 to be hidden. This is a micro-optimization, which allows intrinsic references inside rtld to be handled without indirection through PLT. The visibility of rtld symbols for other objects in the symbol namespace is controlled by a version script. Reviewed by: kan, jilles Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=280816
Diffstat (limited to 'libexec/rtld-elf/rtld_lock.h')
-rw-r--r--libexec/rtld-elf/rtld_lock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rtld-elf/rtld_lock.h b/libexec/rtld-elf/rtld_lock.h
index fa63787d52ac..3d5aaaddad54 100644
--- a/libexec/rtld-elf/rtld_lock.h
+++ b/libexec/rtld-elf/rtld_lock.h
@@ -44,9 +44,9 @@ struct RtldLockInfo
void (*at_fork)(void);
};
-extern void _rtld_thread_init(struct RtldLockInfo *);
-extern void _rtld_atfork_pre(int *);
-extern void _rtld_atfork_post(int *);
+extern void _rtld_thread_init(struct RtldLockInfo *) __exported;
+extern void _rtld_atfork_pre(int *) __exported;
+extern void _rtld_atfork_post(int *) __exported;
#ifdef IN_RTLD