From nobody Tue May 7 08:48:05 2024 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) 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=temperror (zoho.com: Error in retrieving data from DNS) 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 1510343473526856.948280417387; Fri, 10 Nov 2017 11:51:13 -0800 (PST) Received: from localhost ([::1]:43233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDFKK-0004mI-Kq for importer@patchew.org; Fri, 10 Nov 2017 14:50:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDFJQ-0004P9-10 for qemu-devel@nongnu.org; Fri, 10 Nov 2017 14:50:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDFJM-00046m-5z for qemu-devel@nongnu.org; Fri, 10 Nov 2017 14:50:00 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:54411) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eDFJL-00045o-SK for qemu-devel@nongnu.org; Fri, 10 Nov 2017 14:49:56 -0500 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0M8QnS-1f873829uk-00vuIJ; Fri, 10 Nov 2017 20:49:48 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Fri, 10 Nov 2017 20:49:35 +0100 Message-Id: <20171110194935.17541-1-laurent@vivier.eu> X-Mailer: git-send-email 2.13.6 X-Provags-ID: V03:K0:W1SnMiFNtWgP3HEuUHJWbd0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/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.13 Subject: [Qemu-devel] [PATCH] linux-user, s390x: ignore OS ABI value in ELF header 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: Thomas Huth , Peter Maydell , Laurent Vivier , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_6 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" I have this error: bash: /sbin/ldconfig: cannot execute binary file: Exec format error because /sbin/ldconfig is: ELF 64-bit MSB executable, IBM S/390, version 1 (GNU/Linux), statically linked, for GNU/Linux 3.2.0, BuildID[sha1]=3D90b64604014aafac9c1a0623b1cf447281d1a382, stripped OS ABI is GNU/linux "/bin/ls" works well: ELF 64-bit MSB shared object, IBM S/390, version 1 (SYSV), dynamically link= ed, interpreter /lib/ld64.so.1, for GNU/Linux 3.2.0, BuildID[sha1]=3Dbe9b19143d4657678846f6e5277383071fc1059a, stripped OS ABI is SYSV To be able to execute ldconfig, this patch modifies s390x binfmt mask to ignore the OS ABI value (EI_OSABI, byte 7). Signed-off-by: Laurent Vivier --- scripts/qemu-binfmt-conf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh index 8afc3eb5bb..e2e1b7544d 100755 --- a/scripts/qemu-binfmt-conf.sh +++ b/scripts/qemu-binfmt-conf.sh @@ -85,7 +85,7 @@ sh4eb_mask=3D'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xf= f\xff\xff\xff\xff\xff\xff sh4eb_family=3Dsh4 =20 s390x_magic=3D'\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00= \x02\x00\x16' -s390x_mask=3D'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff= \xff\xff\xfe\xff\xff' +s390x_mask=3D'\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff= \xff\xff\xfe\xff\xff' s390x_family=3Ds390x =20 aarch64_magic=3D'\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x= 02\x00\xb7\x00' --=20 2.13.6