From patchwork Sat Mar 22 00:25:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 332788 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7D6182C00A5 for ; Sat, 22 Mar 2014 11:25:44 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version:content-type; q=dns; s=default; b=MkdPd oSQ5JilRBrs2UvjBSl3lPleYz4EU1/L4I7BcfvET6YFIBsa6kFKRnSCN0afR5LNu rYP2H6FFpErJyQe/qnQ3rzBIbzfxejdEgaSXrhHGPUWQfgRNp02YT+qqmz0Dyu8c r2K0InwSoATMvzs6kJfrY7T3I1UXaQViFn1adE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version:content-type; s=default; bh=nG6tngB0RhY Zbrt6HdzFElL+9H0=; b=yELtGYS4RFPE/ntB/C/Xt5JhZXIJRtY/B6/RZEZ+g3z 18OEf7FaIioS78Amk++dqS4okRKD2V9V2iprBKfwB0MmjXFWQ4VPukfp8Pmus3l/ hZVQ8z6l7hhqNg2ifyc3h0+jh/ue/ZUHKOBUW07LLhOElPdEIIedvS9OWjQc1hzs = Received: (qmail 14076 invoked by alias); 22 Mar 2014 00:25:38 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 14064 invoked by uid 89); 22 Mar 2014 00:25:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Sat, 22 Mar 2014 00:25:28 +0000 From: "Joseph S. Myers" To: Roland McGrath CC: "GNU C. Library" , Carlos O'Donell Subject: Re: [PATCH roland/Versions.def] Get rid of Versions.def source file In-Reply-To: <20140321225348.142A8744AA@topped-with-meat.com> Message-ID: References: <20140228214559.BD8BF744B6@topped-with-meat.com> <20140321201830.3221874477@topped-with-meat.com> <20140321225348.142A8744AA@topped-with-meat.com> MIME-Version: 1.0 On Fri, 21 Mar 2014, Roland McGrath wrote: > > No, it worked previously - the point is that GLIBC_2.2.5 is only mentioned > > in Versions files (sysdeps/unix/bsd/Versions > > sysdeps/unix/sysv/linux/x86_64/Versions mach/Versions hurd/Versions) that > > aren't used for MIPS, but used in SHLIB_COMPAT in files that are used for > > MIPS. > > Oh, I see. Before Versions.def had the union of all sysdeps/.../Versions > files in the source tree. Now the generated file gets only the union of > all Versions files actually selected in the current configuration. Someone > (like Carlos when reviewing my change ;->) should check what Versions.def > items were lost in some configuration. But I guess the ones that matter > will come out in usual testing now with -Wundef. As it turns out, adding the GLIBC_2.2.5 version (patch below) does not fix things; it removes the -Wundef warnings and is presumably correct on that basis, but doesn't get the symbols back at their correct GCC_3.0 version. If I build for mips64el-linux-gnu (n32 ABI), at the commit before the Versions.def change, I get libc.map ending with GLIBC_2.18 { global: __cxa_thread_atexit_impl; } GLIBC_2.17; GLIBC_2.19 { global: getrlimit64; setrlimit64; } GLIBC_2.18; GLIBC_PRIVATE { global: [...] } GLIBC_2.19; GCC_3.0 { global: __deregister_frame_info_bases; __register_frame_info_bases; __register_frame_info_table_bases; _Unwind_Find_FDE; }; At the following commit, plus the addition to elf/Versions, it ends: GLIBC_2.18 { global: __cxa_thread_atexit_impl; } GLIBC_2.17; GLIBC_2.19 { global: getrlimit64; setrlimit64; } GLIBC_2.18; GLIBC_PRIVATE { global: [...] } GLIBC_2.19; with no GCC_3.0 version, and the symbols that should be in such a version appearing in GLIBC_2.0 instead. But for an i686 build (on a different system) I do see the GCC_3.0 version. And I also see it for a powerpc32 build on the same system as the mips64el-linux-gnu build, so it appears to be something about the configured host / set of symbols / symbol versions rather than a build environment issue. 2014-03-22 Joseph Myers * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty GLIBC_2.2.5 version. diff --git a/elf/Versions b/elf/Versions index 2383992..23deda9 100644 --- a/elf/Versions +++ b/elf/Versions @@ -12,6 +12,9 @@ libc { dl_iterate_phdr; } %ifdef EXPORT_UNWIND_FIND_FDE + # Needed for SHLIB_COMPAT calls using this version. + GLIBC_2.2.5 { + } GCC_3.0 { __deregister_frame_info_bases; __register_frame_info_bases; __register_frame_info_table_bases; _Unwind_Find_FDE;