Merge "Dynamic linker errors should go to stderr."
diff --git a/linker/linker_main.cpp b/linker/linker_main.cpp
index a5abdff..dad7409 100644
--- a/linker/linker_main.cpp
+++ b/linker/linker_main.cpp
@@ -316,9 +316,9 @@
// 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);
}