]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid calling internal libc function through PLT or accessing data
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 5 Jan 2015 01:06:54 +0000 (01:06 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 5 Jan 2015 01:06:54 +0000 (01:06 +0000)
commit1a744fefc24b8332997c97cdd4c7c93b62b3b4db
treeae1060e14ffc1f7203b630e4e1e7624871ab2ce0
parentfd520b6e21a0d582bc57a0c3e6c62abe645f8980
Avoid calling internal libc function through PLT or accessing data
though GOT, by staticizing and hiding.  Add setter for
__error_selector to hide it as well.

Suggested and reviewed by: jilles
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
lib/libc/include/libc_private.h
lib/libc/sys/Symbol.map
lib/libc/sys/__error.c
lib/libthr/thread/thr_private.h
lib/libthr/thread/thr_syscalls.c