From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94624 invoked by alias); 24 Mar 2015 16:33:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 94572 invoked by uid 89); 24 Mar 2015 16:33:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_50,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: glazunov.sibelius.xs4all.nl Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 24 Mar 2015 16:33:11 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id t2OGX6dl001893; Tue, 24 Mar 2015 17:33:06 +0100 (CET) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id t2OGX6aO002810; Tue, 24 Mar 2015 17:33:06 +0100 (CET) Date: Tue, 24 Mar 2015 16:33:00 -0000 Message-Id: <201503241633.t2OGX6aO002810@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: hector.oron@gmail.com CC: gdb-patches@sourceware.org In-reply-to: (message from Hector Oron on Tue, 24 Mar 2015 17:07:00 +0100) Subject: Re: [patch] libcc1: dynamic load versioned library References: X-SW-Source: 2015-03/txt/msg00796.txt.bz2 > Date: Tue, 24 Mar 2015 17:07:00 +0100 > From: Hector Oron > > Hello, > > I believe libcc1 is versioned library therefore, it should dlopen on > libcc1.so.0 instead libcc1.so. > The patch should be applied to master and 7.9 branch. And what happens if the major version of the library is bumped? > Héctor Orón Martínez > > * include/gcc-c-interface.h (gcc_c_context): load libcc1 versioned library > > --- gdb-7.9.orig/include/gcc-c-interface.h > +++ gdb-7.9/include/gcc-c-interface.h > @@ -197,7 +197,7 @@ struct gcc_c_context > /* The name of the .so that the compiler builds. We dlopen this > later. */ > > -#define GCC_C_FE_LIBCC libcc1.so > +#define GCC_C_FE_LIBCC libcc1.so.0 > > /* The compiler exports a single initialization function. This macro > holds its name as a symbol. */ > > Regards, > -- > Héctor Orón -.. . -... .. .- -. -.. . ...- . .-.. --- .--. . .-. > >