summaryrefslogtreecommitdiff
path: root/lib/libc/Symbols.list
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-03-20 02:32:41 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-03-20 02:32:41 +0000
commit3924b0c2475a56d000c0c5cae2ca1660a97b489b (patch)
treed5f23aa4e0c292f35123ecaf9761158d7c5d71e6 /lib/libc/Symbols.list
parent4621abcf30c5f4ecef9340db8259e51bfabf6529 (diff)
Rearrange C runtime bits: now that ld.so exports environ and __progname,
move their definitions and initialization in static links to libc.a Make crt0 always invoke a new func _csu_finish() in libc to process the auxv and to either register the ld.so cleanup function (in dynamic links) or initialize environ and __progname and do MC_DISABLE_KBIND (in static links). In libc, get pagesize from auxv; cache that between getpagesize() and sysconf(_SC_PAGESIZE) ok mpi@ "good time" deraadt@
Diffstat (limited to 'lib/libc/Symbols.list')
-rw-r--r--lib/libc/Symbols.list3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/Symbols.list b/lib/libc/Symbols.list
index 54f19a9dbef..f954403d882 100644
--- a/lib/libc/Symbols.list
+++ b/lib/libc/Symbols.list
@@ -467,6 +467,8 @@ nextkey
store
/* dlfcn */
+__progname
+_csu_finish
dl_iterate_phdr
dladdr
dlclose
@@ -474,6 +476,7 @@ dlctl
dlerror
dlopen
dlsym
+environ
/* compat-43 */
creat