From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#41994: Emacs on Apple ARM devices Date: Fri, 14 Aug 2020 16:15:40 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3641"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Roland Kaufmann , 41994@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 14 16:16:13 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 1k6aVB-0000qI-Cs for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Aug 2020 16:16:13 +0200 Original-Received: from localhost ([::1]:58612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k6aVA-0008Fo-Bn for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Aug 2020 10:16:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6aV0-0008F9-Fg for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 10:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k6aV0-0007D5-73 for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 10:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k6aV0-0000bd-25 for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 10:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Aug 2020 14:16: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.15974145502308 (code B ref 41994); Fri, 14 Aug 2020 14:16:02 +0000 Original-Received: (at 41994) by debbugs.gnu.org; 14 Aug 2020 14:15:50 +0000 Original-Received: from localhost ([127.0.0.1]:53377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6aUo-0000b5-4v for submit@debbugs.gnu.org; Fri, 14 Aug 2020 10:15:50 -0400 Original-Received: from mail-wr1-f47.google.com ([209.85.221.47]:34061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6aUm-0000aU-7s for 41994@debbugs.gnu.org; Fri, 14 Aug 2020 10:15:49 -0400 Original-Received: by mail-wr1-f47.google.com with SMTP id f7so8520117wrw.1 for <41994@debbugs.gnu.org>; Fri, 14 Aug 2020 07:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version; bh=9ueB3bfc49R5MbTSJ0smBUHmfmUITuetv4t/BC7TVLE=; b=JnCmopvJsjyOhFVtUCw9EeH/uGEc9t+VMuEqsZXlA9SPzYVI6Fw0y3UnKr5Vb2MVSR d33Tae0gu4/rXbM5D38CVqyUKl29ChTVzmxULiul9A1/sG0XSj1JD97DTveOKk2WA8kh Mx6g5TjzV5o0RoPy75f5ig+RrIfzCS+P5JJhbV5/1qUrq9Cw6VJM0KywTMVN5A3WrcRv MhDYRaM1oSpsDFLVxR3TzLls9A86AJR8N+ajKtb1kbbJKoYq+qzd5pmxZ2PSuDWNLyn+ rJaGyLLUcbsmchAnjs8wsjXFIFGr+fuN4/EAXtO7lR8cHOTb0m/Tg5jsvG3IAiwO6ReY af4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version; bh=9ueB3bfc49R5MbTSJ0smBUHmfmUITuetv4t/BC7TVLE=; b=SbcZ0nWfSR4jqEtZkeCfxtTRXK9mcug6TYtiJxeS30VwAn+gNZj4KMPQ++5/Kix66p YtIPXo3g5UdyHic0DndidB+g/2enC9TuFW0zDcNOyUNtkthb/KHaKdBp9Ukk+79Q1F54 a738wWY5gjcwkkEjizp5q1vlTngRrl4tPJj1kHaYWGW71PAqOU1g/AqfubuHDgLCMS4L CObfwjdiWRb5DXAi9xPXDLBqfCbIpV+LJBPRohskmx4KAcv5xUUQ0CIoVpjX5B66Dhmp 6Y8sy/hG9fF45By9Cp3bwtX1j/0I8LGbs9mDlpTcyXPF+Z/gL4Slx9Tf5SflT1WxQCtN LNuA== X-Gm-Message-State: AOAM532H73mtni0eFq3Gvp4LW8PNf3lCjS+dJ/F/nb0KVqfYL8GrFdiK ezO6Dh1c76WyrVF8cs8Q/J9Uj6oKcF0= X-Google-Smtp-Source: ABdhPJxEjljNz3fjL1Y06WNmnvYECTI8JbV55mBF976xSDMHuIH4EqjYmZAcn5KwfxoraTy2eXZ1xw== X-Received: by 2002:adf:dfc7:: with SMTP id q7mr2932353wrn.80.1597414542035; Fri, 14 Aug 2020 07:15:42 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:b592:2dca:9a5d:e396]) by smtp.gmail.com with ESMTPSA id z8sm14722456wmf.42.2020.08.14.07.15.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2020 07:15:40 -0700 (PDT) In-Reply-To: (Stefan Kangas's message of "Fri, 14 Aug 2020 02:17:18 -0700") 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:185111 Archived-At: >>>>> 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? Robert