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: 39567 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 052272118A for ; Mon, 27 Oct 2014 08:00:43 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id k14sf356273wgh.11 for ; Mon, 27 Oct 2014 01:00:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results; bh=Syeb8SzhemjOVcCsY0VaOZVQL6JmIsYASvMjrELQ2vU=; b=izHO+kZOd8sO5fwd/dIstioceoQusM1iAhCn8p0yYk57LVkTJmYv6JzJV3C1tDG+D1 7WRSJR1g2CgK+nSt3bDMA2m4aH/rFbwaZDfybf3wx5tsSCoqP+IcqQPYsjwft4BycoYO GiNbervVD41fovXu6riteRcAMbCvTKII9/9IITSnnbXvr5sfH/CbAtOzAwNiqJtO3K17 aHErqL/YfYS9AJ3PEsP+y/UfyuGC/GR4llsVofo+A4+2Tix8xi5Fou9WOgsJ7nsJ2geY aT85TRv4XHZaqlnG+VtvkEIZe+pSfFstZ/W5X8Bc2+RTppBPL5yznTQv+03zUBvfhvug ktYg== X-Gm-Message-State: ALoCoQkv/7KgV/Abiz1vwVY7pBN1tSrHqPB1nHJxF2fxFeI6gkVrSGXxAkpy6mQpMDd1KQvPMZ80 X-Received: by 10.112.254.226 with SMTP id al2mr5204066lbd.1.1414396843049; Mon, 27 Oct 2014 01:00:43 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.97 with SMTP id p1ls547709laj.87.gmail; Mon, 27 Oct 2014 01:00:42 -0700 (PDT) X-Received: by 10.152.163.101 with SMTP id yh5mr13265221lab.68.1414396842903; Mon, 27 Oct 2014 01:00:42 -0700 (PDT) Received: from mail-la0-x235.google.com (mail-la0-x235.google.com. [2a00:1450:4010:c03::235]) by mx.google.com with ESMTPS id k3si18647417laf.77.2014.10.27.01.00.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 27 Oct 2014 01:00:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::235 as permitted sender) client-ip=2a00:1450:4010:c03::235; Received: by mail-la0-f53.google.com with SMTP id mc6so969657lab.40 for ; Mon, 27 Oct 2014 01:00:42 -0700 (PDT) X-Received: by 10.112.97.135 with SMTP id ea7mr21842148lbb.46.1414396842642; Mon, 27 Oct 2014 01:00:42 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp247231lbz; Mon, 27 Oct 2014 01:00:41 -0700 (PDT) X-Received: by 10.70.54.198 with SMTP id l6mr22305241pdp.7.1414396840887; Mon, 27 Oct 2014 01:00:40 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id tb10si9786191pbc.219.2014.10.27.01.00.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Oct 2014 01:00:40 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-53799-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 15397 invoked by alias); 27 Oct 2014 08:00:02 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 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-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> X-Original-Sender: apinski@cavium.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::235 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 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