Merge "Add __libc_add_main_thread and mark it weak"