Dynamic linker errors should go to stderr.

Also add the missing \n to the end of the error.

Addresses review comment.

Bug: N/A
Test: manual
Change-Id: I7c997a71e6e02381d21ac762595ba90370db9d05
This commit is contained in:
Elliott Hughes 2017-01-09 14:39:44 -08:00
parent 71952ef625
commit 607d307b1f

View file

@ -316,9 +316,9 @@ static ElfW(Addr) __linker_init_post_relocation(KernelArgumentBlock& args, ElfW(
// tombstone for them. The tombstone never provided any detail relevant to
// fixing the problem anyway, and the utility of drawing extra attention
// to the problem is non-existent at this late date.
__libc_format_fd(STDOUT_FILENO,
__libc_format_fd(STDERR_FILENO,
"\"%s\": error: Android 5.0 and later only support "
"position-independent executables (-fPIE).",
"position-independent executables (-fPIE).\n",
g_argv[0]);
exit(0);
}