From patchwork Tue Jun 21 05:06:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 70501 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1830471qgy; Mon, 20 Jun 2016 22:08:05 -0700 (PDT) X-Received: by 10.98.70.11 with SMTP id t11mr26474219pfa.16.1466485685400; Mon, 20 Jun 2016 22:08:05 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id gh8si9167061pac.244.2016.06.20.22.08.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jun 2016 22:08:05 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-70810-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-70810-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-70810-patch=linaro.org@sourceware.org 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:mime-version:content-type; q=dns; s=default; b=mKiea NYuJOzOKvU/atfW7dqdE26Fakvpg3GFJGHO/3exy/hkba8yaPHvBrCbEsTkTIv8G 3NF+iL1AxaqFysK/yaPuLiJT5X0xndwZhjMxPnnaJcX2ZfxnDd8a314+ixDsEdKh xqpIKhzfV11UebcaazKlRwlyEvBEl43D6RCUgE= 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:mime-version:content-type; s=default; bh=VoWj2hXI4O1 5eX1ouVt+1hYNVrw=; b=rmpCDIIVemDVjHXrPF5jSCMn6V/cCAUzVGqu02u3L+b 1j/pJIMztj2JPBhWXJfElUtWR6WGaxPOdC0/ymQ1RO2H57UyPwF+wNdvvq+PbATs QS9ss3o/1q1+PnYnoHx2ENGHd6c29zwZpuHwWAhdUDVR+PPkPdhxgbVDi6hmSAl4 = Received: (qmail 102175 invoked by alias); 21 Jun 2016 05:07:55 -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 102048 invoked by uid 89); 21 Jun 2016 05:07:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:na01-bl, H*r:65.55.169, H*r:sk:mail-bl, apinski@cavium.com X-HELO: na01-bl2-obe.outbound.protection.outlook.com Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; From: Yury Norov To: , CC: , , , , , , , , , Andrew Pinski , Yury Norov Subject: [PATCH 01/27] [AARCH64] Fix utmp struct for compatibility reasons. Date: Tue, 21 Jun 2016 08:06:44 +0300 Message-ID: <1466485631-3532-2-git-send-email-ynorov@caviumnetworks.com> In-Reply-To: <1466485631-3532-1-git-send-email-ynorov@caviumnetworks.com> References: <1466485631-3532-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-ClientProxiedBy: HE1PR03CA0031.eurprd03.prod.outlook.com (10.163.170.169) To DM3PR07MB2252.namprd07.prod.outlook.com (10.164.33.150) X-MS-Office365-Filtering-Correlation-Id: a2b35935-5721-4542-a6a5-08d39991f7af X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2252; 2:Fz9jLOc/7hYpyLE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LqSQThU7zWdahrTLxY2dF77r+iW1bA5EJRyB5xhu8JY/MyuhRJ7QSiQiMMQDjLbyjADePUebsHP87oecupaL8e27+TctZJeFY/dHG5+JtWis3jb7AW7QHozCeJF18H4G4wTTJJYNVONlj1N40plFJVdl8TWp47UEbStLJEeCAbAH6dIUo94+Hej6oRfyNJpPA== X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2252; 20:YV+l4oLIQuraKOvMFtgo/qe4zBgFnH5NZsPuGNyXBvwmNzXX+q7yxD8Odql8+KSQ1sp7BOwj9IefduK7JkFV7zOIYVekQTxi5DDtV6k2n/bl+URpcDaghElSXSGiFuBfLvHVXE/reB5emwkUU9ftjpMFx1G/IN0dXYjMOIFdu64qUj9/+6BJnoXPVMFIkX0cZFhBWaYHMZqse+jAWWVgiXvfPbhpCKVpEYNj6LT4Qz8MugyGiYn7RAlSsUi0Yw4T1B/nUEpLXwDapqL1po35zXUdrMpBrP6bLunFcBnIUwJSeIi+V4YZuFAQ4P7Y5L4a2KjUq5IAkUaUA4zm6IyVRkaYIi3X4RG8ExW/OgjAcaSZ61XGselUqjJieE+YtyH0JwBd8MxrJJ/3sEK/pro8krNU6M54V2OPwelm1vFt/N1UW6Pj6j+4qK/fFAg+vCi4TdzV3DNK+Z/8i+raqtDBHtBTntiV9NRFLjQAZSYdRymeRuxJn/vb4FKyqdBbC98GTow82SHPG6WVGzOzKaj4YcsQhlzfIZGpUS76M2LLtsZH86Cd5/sL/HNdhbGtB6dpHU7VSjF3oFSLe0aSG8XTd8ubp12Q0zggKLSX1/KlP40= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(250305191791016)(278428928389397)(22074186197030)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:DM3PR07MB2252; BCL:0; PCL:0; RULEID:; SRVR:DM3PR07MB2252; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2252; 4:UmHmklek8N6FTwBke0dK4R3YB+DK/3F2/Bx2Uk7lsPkErSFxz9jxsZ/l8MG3AV+DvqrMXqCMkl2FF4DbomcwXX7tXobD+uselYdtjFwB3tBIL9bWan4oEPn+kFQD6/hjs9e++DVpbRdySIWSMr2pLZtZOKR6qQsSG8qPo31S+8CEM/Q/lIVnXhpV2TJlaBiLwhuWYme+4ZAN+waJu0pQeVHWJfLaU89zz1IyWNqJhgMcTC2zDFaY3mucr3nQV/oPpzlXh7dQboDptpxAKdsK/rSKvMj2OBACZyUmVQQZYXBuhPjbw7cRCN4yIszHujijwClv+27gP06gSeUrUQm6uGnSAklZBD69wkIpI/bjVNjZLiPJecrckppJ/MRSjIIGmmdSS7OmMtJfwKimVbu3HSLcfCa+Zj0VKHUJ8+HkNwkCG0y69CnduC6yjarigyNdNrShKaiZ4jaOHI6QP9M7MSzrKxSWWvelhM+7yNFK7zPEG/PNe5CD9Js3jL4mO8+jAJR5tkg4UkkVlh41TvEMng== X-Forefront-PRVS: 098076C36C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(189002)(199003)(47776003)(50466002)(2950100001)(92566002)(8676002)(76506005)(229853001)(76176999)(15975445007)(48376002)(77096005)(81166006)(7736002)(66066001)(68736007)(33646002)(81156014)(97736004)(50986999)(101416001)(36756003)(42186005)(586003)(50226002)(7846002)(107886002)(3846002)(6116002)(189998001)(106356001)(4326007)(4001430100002)(19580405001)(19580395003)(5003940100001)(105586002)(5001770100001)(2906002)(2004002)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM3PR07MB2252; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM3PR07MB2252; 23:KCNDRq7WRdy6KzpD4JHJMt7bq8lm2LsmjuDoMrZqW?= =?us-ascii?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tIXpj0PWNrf4khamJ/cg54YpIC6rz/mlkc+VGSLi2t2M8JIC/ZIN6vquFye/ACAsIkcidMyuOSEMX9nVH8X19eEOGbGB7cgXZ/dbVqOBf+cq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2016 05:07:38.9339 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR07MB2252 From: Andrew Pinski 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. Signed-off-by: Yury Norov --- sysdeps/aarch64/bits/wordsize.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sysdeps/aarch64/bits/wordsize.h -- 2.7.4 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