From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A570A138206 for ; Mon, 1 Aug 2016 17:58:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B8DCAE0B62; Mon, 1 Aug 2016 17:58:16 +0000 (UTC) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 77075E0ABC for ; Mon, 1 Aug 2016 17:58:15 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id q128so27257389wma.1 for ; Mon, 01 Aug 2016 10:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:reply-to:subject:date:message-id:user-agent:in-reply-to :references:mime-version; bh=XGcx6v76sHDRzpRvaBTNmpy8LtWaCEWLtVeOUidb43c=; b=gg2o4SsQBvhFrlP0LhKGwMH60mlELtA0vZrej42JD5+hg7glH/BvV74bNSg9sa/gD6 MhktFXLje9ZmnHqFT3Lrqam+rk/N7/NnftnApay6Ol+QawLhUF52wOqTu4l/XJu6H73z QeF7NjgROchTYGuL1oOErzIO5Z2DwFXWQGHjgEtBem8SYkyfRJwBoON3ATk2TvRnN/Vq fAPmMfu/b2M8z5dGelsjeAhVVmFvAp9uSeJpZoMUaifBK7Z6ZdMiJquqiTfNE/zrPlQK AwIvHoVwXZ1JZZyH0lPDBNO+cnhF9eP29Z5MqubzfgKCVoi+TuHk9Zpe7iStbYqDMyKk eEOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:reply-to:subject:date:message-id :user-agent:in-reply-to:references:mime-version; bh=XGcx6v76sHDRzpRvaBTNmpy8LtWaCEWLtVeOUidb43c=; b=bz8REsoL0D/9ohGux8ndsYzDjyaHH46XtQQ8oyFfG7ywuGRUI1ATbuoYhz66cXB0ek ANBVFhj0UlgYtLyu5nCa/9f1RtVOD7kp5+MlKt4QXfUyhzrJ1c7YaKuF4+z0Bkz1vjRP X6+0rWIdIf4FmXZ4KuXv/ZXi44TI0q0uTAbio9frauJ5EAi5quQjY96mWby+8aoEFDJd 1/mXYcolHc6wMUIWlwxevCpYyzJ326ATdvEWq9fFOojsaMVturNODBhnJ+rQzcfM7kY6 oGkVfZYIUMdFU21eqAFD7yaSND7Az6MSG/WdwVpP+vXoNIt6XlY+iiov46WTGlqHrl7G wJ4Q== X-Gm-Message-State: AEkoouvP1gw1cb8di33778Hu9Y7UGV064QzcAc1yTywgXbu4Aih9DwzzDQwxnP8FhtSi9A== X-Received: by 10.194.142.198 with SMTP id ry6mr51676463wjb.62.1470074293707; Mon, 01 Aug 2016 10:58:13 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by smtp.gmail.com with ESMTPSA id g7sm31596033wjx.10.2016.08.01.10.58.12 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Aug 2016 10:58:13 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: [was cross-compile attempt] 32bit chroot Date: Mon, 01 Aug 2016 18:57:53 +0100 Message-ID: <7581556.2nt05l2rzF@dell_xps> User-Agent: KMail/4.14.10 (Linux/4.4.6-gentoo; KDE/4.14.20; x86_64; ; ) In-Reply-To: <25794541.FjCKaz5n3c@dell_xps> References: <1544697.klPk7OG4O7@dell_xps> <20160801161941.GA411@waltdnes.org> <25794541.FjCKaz5n3c@dell_xps> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2624307.WRLI79KEpv"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Archives-Salt: 0c394fe2-5c00-40c1-87d9-3645b175ba71 X-Archives-Hash: fe293804d5f08a9f51632295f3ea721e --nextPart2624307.WRLI79KEpv Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" On Monday 01 Aug 2016 17:32:58 Mick wrote: > On Monday 01 Aug 2016 12:19:41 waltdnes@waltdnes.org wrote: > > > What chroot() actually does is fairly simple, it modifies pathnam= e > > > lookups for a process and its children so that any reference to a= path > > > starting '/' will effectively have the new root, which is passed = as > > > the single argument, prepended onto the path. The current working= > > > directory is left unchanged and relative paths can still refer to= > > > files outside of the new root. >=20 > Thanks Walter, it's present along with the whole of the 32bit OS fs: >=20 > gentoo-32bit # ls -la /mnt/iso/gentoo-32bit/bin/bash > -rwxr-xr-x 1 root root 677244 Jan 16 2016 /mnt/iso/gentoo-32bit/bin/= bash >=20 > gentoo-32bit # file /mnt/iso/gentoo-32bit/bin/bash > /mnt/iso/gentoo-32bit/bin/bash: ELF 32-bit LSB executable, Intel 8038= 6, > version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2,= for > GNU/Linux 2.6.32, stripped >=20 >=20 > Am I missing something in the amd64 kernel to be able to execute 32bi= t code? No, I was missing the *whole* of the 32bit fs /lib directory. O_O Apologies for the noise. =2D-=20 Regards, Mick --nextPart2624307.WRLI79KEpv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJXn425AAoJELAdA+zwE4YeeN4IALnQ48XDcv5LAirYKzOd2uyY jRkCFSPshiFB6j9sBGYodnqPpXQFzejqWcFmN/j84JVZp2x6qbCnfywZhDam5vjV e/VaCXOQf6UyucbWR+43zslm2wDeZ+CgOLY4PEp4oiXL+e9ukfn6d9pPyXwfOUoo nbMFlXzq9nyq7Au2jzGmBHV0UhCNyCl3B8/DOsvCFeUMQA76ItSuJlHosGAIuabX Cv8Xt5zzT+XgjyL35OHST13Kdd1Tw2qkwuXsLm/wSa8MOeQ8+oBghOPiXvooit2q 8Zf5oLmwJfHjmZdhmGNaoUYPBYlHj4aIYe4KHmVI4Wvn4OAG0wOeU2WI22ZhzeY= =FzaO -----END PGP SIGNATURE----- --nextPart2624307.WRLI79KEpv--