From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#41994: Emacs on Apple ARM devices Date: Fri, 14 Aug 2020 22:11:46 +0200 (CEST) Message-ID: <20200814201143.GC44359@breton.holly.idiocy.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23946"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Roland Kaufmann , 41994@debbugs.gnu.org, Stefan Kangas To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 14 22:12:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k6g3e-00066G-HP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Aug 2020 22:12:10 +0200 Original-Received: from localhost ([::1]:49414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k6g3d-0007y2-GC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Aug 2020 16:12:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6g3W-0007xi-W2 for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 16:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42411) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k6g3W-0001Nf-MW for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 16:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k6g3W-0001tm-IQ for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 16:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Aug 2020 20:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41994 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41994-submit@debbugs.gnu.org id=B41994.15974359177288 (code B ref 41994); Fri, 14 Aug 2020 20:12:02 +0000 Original-Received: (at 41994) by debbugs.gnu.org; 14 Aug 2020 20:11:57 +0000 Original-Received: from localhost ([127.0.0.1]:53957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6g3R-0001tT-CZ for submit@debbugs.gnu.org; Fri, 14 Aug 2020 16:11:57 -0400 Original-Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:43154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6g3P-0001tD-HV for 41994@debbugs.gnu.org; Fri, 14 Aug 2020 16:11:56 -0400 Original-Received: from smtpauth1.co-bxl (smtpauth1.co-bxl [10.2.0.15]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 2B6B61BC6; Fri, 14 Aug 2020 22:11:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1597435909; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To; l=1757; bh=4dG4uTBrRWCh5uxE8b1IPGhrMgFmPLK9k16XA4TQgvY=; b=blkRI79m82urN4YUzw3Nyczfx0LqeNDomiDJGywX1jErN9HIRXe0uhYyY22NMcrP fYsqNhXCRL6kqTiDkEckka127GKaoEEekOqirjuxO1EeNaG8DF47vQmzmPaGI14NSMV PnDEK26sIPDnsZ/OsFQQXSsOejzy0a+tlhsi9GMy9rPjnHdv+BZDSi7cqN4Up4d3iTh jkAGK+ufQ+BXIph9NZhD5Cj99zc59JwRxcIGNVbTlIeYudVjwpDzkn4H9l4inAYenAB aJDlrhq3fpoqhd2zbWZZiSkHYZ9deTaURP1VXwusFd573zRFxag8kByHE6Cg9/Rdy/r 9cXnSLBAhg== Original-Received: by smtp.mailfence.com with ESMTPA ; Fri, 14 Aug 2020 22:11:44 +0200 (CEST) Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 5247F202487B3F; Fri, 14 Aug 2020 21:11:43 +0100 (BST) Mail-Followup-To: Alan Third , Robert Pluim , Stefan Kangas , Roland Kaufmann , 41994@debbugs.gnu.org Content-Disposition: inline In-Reply-To: X-ContactOffice-Account: com:241649512 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:185165 Archived-At: On Fri, Aug 14, 2020 at 04:15:40PM +0200, Robert Pluim wrote: > >>>>> On Fri, 14 Aug 2020 02:17:18 -0700, Stefan Kangas said: > > Stefan> Roland Kaufmann writes: > >> Code generation on Apple's ARM devices is mostly similar to MacOS, except that > >> they expect a code signature section, which to avoid wasting too many bytes, are > >> not aligned on page size as with code, but rather to nearest 16 bytes. In > >> addition, the ARM compiler will also emit some relative pointer relocation > >> records, which it seems can be safely ignored as sections aren't rearranged. > >> > >> This changeset implements those changes on the Mach-O dumper so that Emacs can > >> be compiled for ARM devices. With the ongoing convergence between the MacOS and > >> iOS platform, and the increasing importance of code-signing in later MacOS > >> versions, I think it could be nice to mainline these changes. > >> > >> Since these sections do not occur in current MacOS builds - otherwise they would > >> generate errors for being unknown - the changes should not impact existing > >> places where Emacs build, and it would not work on iOS without to begin with. > >> > >> Hat tip to Aaron Griffith for sharing his knowledge. > > Stefan> This series of patches was submitted 8 weeks ago, but never got a reply > Stefan> at the time. > > Stefan> Could someone with more knowledge about this please help review it? > > Are these patches even still needed now that emacs-27 has a portable > dumper? That's what I was wondering (although to be honest I never even noticed there were patches attached). I suspect the patch to configure.ac might be needed even for the pdumpder? -- Alan Third