From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9094 invoked by alias); 13 Jun 2014 16:19:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9012 invoked by uid 48); 13 Jun 2014 16:19:37 -0000 From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/60731] [4.7/4.8/4.9 Regression] dynamic library not getting reinitialized on multiple calls to dlopen() Date: Fri, 13 Jun 2014 16:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg01213.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60731 --- Comment #12 from Jason Merrill --- (In reply to Dave Johansen from comment #11) > Can this please be reopened? It was determined in the glibc bugzilla that > this is a gcc problem because of the incorrect setting of unique flag. The setting is not incorrect, nor is it an optimization; it is necessary to fix the behavior of RTLD_LOCAL with multiple loaded objects depending on the same library, since the glibc developers rejected the other approach that I suggested (https://www.sourceware.org/ml/libc-alpha/2002-05/msg00222.html). If you don't need this handling, in 4.9 you can use -fno-gnu-unique to disable it. I'll go ahead and backport that switch to 4.8 as well.