From ce8986c7a1dccfc7cf95adec52b3d767a7b3e525 Mon Sep 17 00:00:00 2001 From: sgehwolf Date: Wed, 19 Jun 2019 19:05:59 +0200 Subject: [PATCH] 8226392: Launcher should not enable legacy stdio streams on GNU/Linux (glibc) Summary: Ensure _IO_stdin_used gets exported via linker version script Reviewed-by: andrew, fweimer --- make/mapfiles/launchers/mapfile-x86 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make/mapfiles/launchers/mapfile-x86 b/make/mapfiles/launchers/mapfile-x86 index dcda7f949..5951e8e49 100644 --- a/make/mapfiles/launchers/mapfile-x86 +++ b/make/mapfiles/launchers/mapfile-x86 @@ -42,6 +42,11 @@ SUNWprivate_1.1 { __fsr; __fsr_init_value; __longdouble_used; + # Needs to be global rather than local. Note that _IO_stdin_used + # is exported by crt1.o. If it were using 'local' scope instead, + # glibc would use a legacy implementation of libio, which isn't + # what we want + _IO_stdin_used; local: *; -- GitLab