summaryrefslogtreecommitdiff
path: root/libc/private/KernelArgumentBlock.h
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2018-11-22 02:41:36 -0800
committerRyan Prichard <rprichard@google.com>2018-11-28 14:26:14 -0800
commit48b1159bb82b12bdd75be9228bd43db45168bdba (patch)
tree876b546289ca58c6bb0a923c325aedeef7fd5cf8 /libc/private/KernelArgumentBlock.h
parent7752bcb234a9960d2e9e89766d143b7ac0c5f332 (diff)
Use shared globals to init __progname + environ
Initialize the __progname and environ global variables using libc_shared_globals rather than KernelArgumentBlock. Also: suppose the linker is invoked on an executable: linker prog [args...] The first argument passed to main() and constructor functions is "prog" rather than "linker". For consistency, this CL changes the BSD __progname global from "linker" to "prog". Bug: none Test: bionic unit tests Change-Id: I376d76953c9436706dbc53911ef6585c1acc1c31
Diffstat (limited to 'libc/private/KernelArgumentBlock.h')
0 files changed, 0 insertions, 0 deletions