From patchwork Mon Oct 27 07:59:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 403414 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 6646D140081 for ; Mon, 27 Oct 2014 19:00:35 +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:from:to:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=se0Sh00arPTrpy60unYrMFBWhV0ml/Q fwauzgJ2Zt8M9NVbBIsbFGQUDsYoTv83rLmM2H46asDNRusBPrKwsjtbmLprztw2 GXFlm1q2/G/MB9dcfslRxrHwuqOzD5iXsWRKaipJz//2IPxEOVJe54GOdj9G2uOV yPjKXE5d5TCA= 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:from:to:cc:subject:date:message-id:in-reply-to :references; s=default; bh=v1QBa6+GQZTB///kTu9ae334R0I=; b=V/iGG J3nr0MDZYdU+EoE8fgownUKp+SRUcRZ8WIyTa/dZYXBJ0Fk6Q0Jz5UJh590r9NzN wFp32amP07aBsNq5XHaieCeowfWY0zfOtfzdOG2kqj/6uJnb4lm1tYBH6kZB0G09 ihhYmzhEMv13kmxoyXuw80yv6GKxSxYgst0kGQ= Received: (qmail 15397 invoked by alias); 27 Oct 2014 08:00:02 -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 15252 invoked by uid 89); 27 Oct 2014 07:59:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-ie0-f170.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Syeb8SzhemjOVcCsY0VaOZVQL6JmIsYASvMjrELQ2vU=; b=S1q9JR1VGJ79Wn/tNliGDtKdNgRr92w3m9+7SMhLvlA0w7opCuBD5KSYZOjMgqjWL8 0OjqOkxTVZ8lHl3u9m2+Ny0e8UGRWwf97tkjI7/SW4U54EuOgeaPQc9e3+kJXFFJeDkB hwWZEcGIG0fuiM9t/pVemkMWqav46QlTEoN18b1AIyGO0TJpM9z9SXKT3hB3B3MHBdqw z2zyH/6LzTnTH6k0do4fOSkpiLSEAwc+fFYlzvPYin0URw3qOv0FSitSvrtnRV7gNw7Q qVRUfgJmZYrC2r05a5kXjEQDIIh4JOd5gklsd/A8DVF+/vtdAV2xT955WUXeOzsbiyFu K50w== X-Gm-Message-State: ALoCoQmqpGWxXkFzMVJeeGd13pjGyKXgDKT6DOfEa2CG5AIydBx7aWUACaFcG9hn5DiRUkN5ZAyR X-Received: by 10.50.118.35 with SMTP id kj3mr20282345igb.30.1414396796414; Mon, 27 Oct 2014 00:59:56 -0700 (PDT) From: Andrew Pinski To: libc-alpha@sourceware.org Cc: Andrew Pinski Subject: [PATCH 01/29] [AARCH64] Fix utmp struct for compatibility reasons. Date: Mon, 27 Oct 2014 00:59:25 -0700 Message-Id: <1414396793-9005-2-git-send-email-apinski@cavium.com> In-Reply-To: <1414396793-9005-1-git-send-email-apinski@cavium.com> References: <1414396793-9005-1-git-send-email-apinski@cavium.com> NOTE This is an ABI change for AARCH64. If you have some AARCH32 and AARCH64 applications and they both use utmp, one of them will fail due to the use of time_t inside the utmp binary format. This fixes the problem by setting __WORDSIZE_TIME64_COMPAT32. * sysdeps/aarch64/bits/wordsize.h: New file. --- sysdeps/aarch64/bits/wordsize.h | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) create mode 100644 sysdeps/aarch64/bits/wordsize.h diff --git a/sysdeps/aarch64/bits/wordsize.h b/sysdeps/aarch64/bits/wordsize.h new file mode 100644 index 0000000..3ecccaa --- /dev/null +++ b/sysdeps/aarch64/bits/wordsize.h @@ -0,0 +1,26 @@ +/* Copyright (C) 2014 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#define __WORDSIZE 64 + +/* LP64 ABI has a 64bit time_t. + This allows aarch32 and AARCH64 applications + both access utmp. */ +#define __WORDSIZE_TIME64_COMPAT32 1 + +/* LP64 use the 64bit system call interface. */ +#define __SYSCALL_WORDSIZE 64