From nobody Wed Feb 11 05:35:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1516719379814584.3092795003087; Tue, 23 Jan 2018 06:56:19 -0800 (PST) Received: from localhost ([::1]:33640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edzzc-00056X-Ke for importer@patchew.org; Tue, 23 Jan 2018 09:56:08 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edzs2-00075q-NH for qemu-devel@nongnu.org; Tue, 23 Jan 2018 09:48:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edzs0-0002Pr-4b for qemu-devel@nongnu.org; Tue, 23 Jan 2018 09:48:18 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:52914) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edzrz-0002OF-R7 for qemu-devel@nongnu.org; Tue, 23 Jan 2018 09:48:16 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MUVwx-1eCjhm2sdf-00REMn; Tue, 23 Jan 2018 15:48:13 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Tue, 23 Jan 2018 15:48:02 +0100 Message-Id: <20180123144807.5618-9-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180123144807.5618-1-laurent@vivier.eu> References: <20180123144807.5618-1-laurent@vivier.eu> X-Provags-ID: V03:K0:UJRKC/ivc9bSjujaNT3kuF9szvI9wrlmc8eHpkfg67WzHwjRpVK q/m7E2+Wl5e+u9EBv8x7g2bckh4uJz31evKNbgsHb9WycA2JDaRrLYt/VTs6+o3YSIOkJ5A YNKPCXH5aX6D5MwH43M2qoKmaljNFgO0tLiwcSvOrOGde39DLnH2jdxPTnFsZSIoumh6b0I LUGZc9AMLpieSwKSUThWA== X-UI-Out-Filterresults: notjunk:1;V01:K0:Zl4q47UaXZo=:uAsRrLWr60nnOdbxlmdASP 7CEZp/lRdPVdtLuq9fANVhO0/RgNmpg6Ivqb7mQ04Bnej3Z2dGmSxmaHME3VTHgbpjWR4TJUI pPeu3ObeI/wA1i6mzyc0eIZfZYXSlsE2c53LtVVAwry62o/HsxtDhwd5lDRGBh73fFQiort/u ssBnKJ0C0W0FOtBUe5tpHwysw0lBbHQZgn0H15xestOuaERgwSDKaKPORscO1YHl+FwrUSZlW 8LpZYgbfoLIpPLkkX3vKfeyjoWH3jG8xeXJwL5Itr1qlsVyq5vzrLIGLpdd03aWXhgJkAEE/H oj6hhrDemvayDxWwoEy1gbIqEQi83Zusb5jjZCtBx+m2J/srjzswKEd5X3Al9uMdKzpe0lTWI 02Ys1GyuRFeUtt1xLPwlWSzh6cgR6pV/tS67BaSJj0HIwJEzwyPdl5CPOwVKRFgMnBzERzh9b isTcWVBVeoQiAsNS5t7qauAHrcwVp3Di2ki2RJjKPsMjFF+06Cssi99HCMXb2qsZ6D7j5j2RN FCzOoge4NvSEDnCyjq13y38w6GD01iKfkhwqn4MRMybUcdIsKH/Po/GMLbO4MUXzKiqWbhOgo yZL8Nw4YOJjXW4uF+r2NU5aU6Z0n8QAy5b6QaofSHtJdJaN2nhcysnPcL5+H2Jw4lkEIBAQAD ylXsMgTPyWJqtreMJUgEOmxob6+4a04bkKuW3etSmbxHtRKku6aueWh66qw/E1LmMVtd8QTRX IwpsIKXEcGk5E46Lzq1tgmCXAbKlMGxBzHvsag== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.75 Subject: [Qemu-devel] [PULL 08/13] linux-user: Add AT_SECURE auxval X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marco A L Barbosa , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Marco A L Barbosa Signed-off-by: Marco A L Barbosa Reviewed-by: Peter Maydell Reviewed-by: Laurent Vivier Message-Id: <20180111183714.22834-2-malbarbo@gmail.com> Signed-off-by: Laurent Vivier --- linux-user/elfload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 20f3d8c2c3..32a47674e6 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -1354,7 +1354,7 @@ struct exec ~(abi_ulong)(TARGET_ELF_EXEC_PAGESIZE-1)) #define TARGET_ELF_PAGEOFFSET(_v) ((_v) & (TARGET_ELF_EXEC_PAGESIZE-1)) =20 -#define DLINFO_ITEMS 14 +#define DLINFO_ITEMS 15 =20 static inline void memcpy_fromfs(void * to, const void * from, unsigned lo= ng n) { @@ -1786,6 +1786,7 @@ static abi_ulong create_elf_tables(abi_ulong p, int a= rgc, int envc, NEW_AUX_ENT(AT_HWCAP, (abi_ulong) ELF_HWCAP); NEW_AUX_ENT(AT_CLKTCK, (abi_ulong) sysconf(_SC_CLK_TCK)); NEW_AUX_ENT(AT_RANDOM, (abi_ulong) u_rand_bytes); + NEW_AUX_ENT(AT_SECURE, (abi_ulong) qemu_getauxval(AT_SECURE)); =20 #ifdef ELF_HWCAP2 NEW_AUX_ENT(AT_HWCAP2, (abi_ulong) ELF_HWCAP2); --=20 2.14.3