From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from zimbra2.kalray.eu ([92.103.151.219]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6WQQ-0008AW-He for barebox@lists.infradead.org; Wed, 20 Mar 2019 08:18:16 +0000 Date: Wed, 20 Mar 2019 09:18:09 +0100 (CET) From: =?utf-8?Q?Cl=C3=A9ment?= Leger Message-ID: <1029133302.4680876.1553069889561.JavaMail.zimbra@kalray.eu> In-Reply-To: <20190320080506.xttdoivywbkaptx5@pengutronix.de> References: <2115635878.3947318.1552936607997.JavaMail.zimbra@kalray.eu> <20190320080506.xttdoivywbkaptx5@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] elf: add 64 bits elf support To: Sascha Hauer Cc: Barebox List SGkgU2FzY2hhLAoKPiBIaSBDbMOpbWVudCwKPiAKPiBPbiBNb24sIE1hciAxOCwgMjAxOSBhdCAw ODoxNjo0N1BNICswMTAwLCBDbMOpbWVudCBMZWdlciB3cm90ZToKPj4gVGhpcyBwYXRjaCBhZGQg ZWxmNjQgbG9hZGluZyBzdXBwb3J0IHRvIHRoZSBlbGYgbG9hZGVyLiBTaW5jZQo+PiBlbGYzMiBh bmQgZWxmNjQgdXNlcyBjb21wbGV0ZWx5IGRpZmZlcmVudCB0eXBlcywgdG8gYXZvaWQgY29weWlu ZyBhbGwKPj4gdGhlIGNvZGUgYW5kIHNpbXBseSByZXBsYWNlIGVsZjMyIHdpdGggZWxmNjQsIHVz ZSBhIG1hY3JvIHdoaWNoIHdpbGwKPj4gcmV0dXJuIHRoZSBhcHByb3ByaWF0ZSBmaWVsZCBmb3Ig ZWFjaCB0eXBlIG9mIGhlYWRlci4gVGhpcyBtYWNybwo+PiBn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