summaryrefslogtreecommitdiff
path: root/tools/generate-version-script.py
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2018-11-22 02:44:09 -0800
committerRyan Prichard <rprichard@google.com>2018-12-04 13:51:36 -0800
commit9cfca866ce36458bb942b7eebc4997f7bb94d3ad (patch)
treef0a8fbdff8af4c8a911b4e88c248f7256f941bbc /tools/generate-version-script.py
parent949269828e14167cef09ed7a5ba99df170b5adb6 (diff)
Split main thread init into early+late functions
Split __libc_init_main_thread into __libc_init_main_thread_early and __libc_init_main_thread_late. The early function is called very early in the startup of the dynamic linker and static executables. It initializes the global auxv pointer and enough TLS memory to do system calls, access errno, and run -fstack-protector code (but with a zero cookie because the code for generating a cookie is complex). After the linker is relocated, __libc_init_main_thread_late finishes thread initialization. Bug: none Test: bionic unit tests Change-Id: I6fcd8d7587a380f8bd649c817b40a3a6cc1d2ee0 Merged-In: I6fcd8d7587a380f8bd649c817b40a3a6cc1d2ee0 (cherry picked from commit 39bc44bb0e03514e8d92f8c0ceb0b5901e27a485)
Diffstat (limited to 'tools/generate-version-script.py')
0 files changed, 0 insertions, 0 deletions