From patchwork Mon Jan 5 18:03:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 425400 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 AEE2414009B for ; Tue, 6 Jan 2015 05:03:22 +1100 (AEDT) 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:subject:message-id:mime-version :content-type; q=dns; s=default; b=faZ1Q2Dq/EUQnDSUZIjJ98Mfk8WNQ PVct9vlenzor6hHr+tqktHzWu+h6Ug38mvFOUqhXq1PLXweFvio9HQ6xm2oAXb0P r0RmrIaQ2GtnOpBaeGu0ERcheVFsPybEo2uepwfQlo5iwUe23HIsu8xjFWv7mx9b mRCjDhP55euHIo= 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:subject:message-id:mime-version :content-type; s=default; bh=GN9w01O3KZYSpYXhSkqLlrR6VUg=; b=M0D qWEyQUZRi7wSIhKoRrMDAylF3jbhhnq76yuADTiqxXIgmqv00GtcXKFl7p2QHVGb qqY9ZHt16aXibqxi8PQvyL/DpJYCN6sJSTUMlqps7IoiCocyl8brfI1JwjWGgLkk hkooU/bFWii+XL38Mgl7YCutLgMwOOrPjus1MFcA= Received: (qmail 29270 invoked by alias); 5 Jan 2015 18:03:17 -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 29250 invoked by uid 89); 5 Jan 2015 18:03:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Mon, 5 Jan 2015 18:03:07 +0000 From: Joseph Myers To: Subject: Fix MIPS n64 posix_fadvise namespace (bug 17796) [committed] Message-ID: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c defines posix_fadvise64 as a strong alias for posix_fadvise (for !SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) - i.e., for static linking, which is the case when this matters), but it should be a weak alias. This patch makes it a weak alias. Tested for MIPS that this fixes the observed linknamespace test failures. Committed. 2015-01-05 Joseph Myers [BZ #17796] * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64): Define as weak alias not strong alias. diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c b/sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c index 3b5daf1..9687e34 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c +++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c @@ -46,5 +46,5 @@ compat_symbol (libc, __posix_fadvise64_l32, posix_fadvise64, GLIBC_2_2); strong_alias (posix_fadvise, __posix_fadvise64_l64); versioned_symbol (libc, __posix_fadvise64_l64, posix_fadvise64, GLIBC_2_3_3); #else -strong_alias (posix_fadvise, posix_fadvise64); +weak_alias (posix_fadvise, posix_fadvise64); #endif