From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#41994: Emacs on Apple ARM devices Date: Fri, 14 Aug 2020 02:17:18 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14584"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41994@debbugs.gnu.org To: Roland Kaufmann Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 14 12:09:28 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 1k6WeN-0003em-DG for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Aug 2020 12:09:27 +0200 Original-Received: from localhost ([::1]:34508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k6WeM-00024y-Cl for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Aug 2020 06:09:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6Vqc-0004UB-A2 for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 05:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40260) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k6Vqb-0003e2-RH for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 05:18:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k6Vqb-0000Mw-M9 for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 05:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Aug 2020 09:18:01 +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.1597396651737 (code B ref 41994); Fri, 14 Aug 2020 09:18:01 +0000 Original-Received: (at 41994) by debbugs.gnu.org; 14 Aug 2020 09:17:31 +0000 Original-Received: from localhost ([127.0.0.1]:51806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6Vq6-0000Bb-PU for submit@debbugs.gnu.org; Fri, 14 Aug 2020 05:17:31 -0400 Original-Received: from mail-yb1-f170.google.com ([209.85.219.170]:37637) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6Vq0-0008T0-CG for 41994@debbugs.gnu.org; Fri, 14 Aug 2020 05:17:26 -0400 Original-Received: by mail-yb1-f170.google.com with SMTP id e14so4869733ybf.4 for <41994@debbugs.gnu.org>; Fri, 14 Aug 2020 02:17:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=1n8umTgCRotDyCNSLarmQJU7GOG7ty8T2BmRceAvQHU=; b=mRKExPKmzXy5ujgaD33z9N8g0KAhSp3JlymJEcO3Q3dLoMuFYM1BH1aH2fL1MaZOSi uXvLjLC0o++5MbT3Qlm4OvPH0ODSYDovGvBWNwxVW3U1281k9L8M9jOhF/Zwk/N2TrTU ls3RUNTQ1+eLe851TEiGWYfl/kSz8AxHjnKV+kRsXe1Zj6PQyV5fZiyH/oDFA32l/VvD nIMWVrP+EGPPabeHhl1Qvp1fj5R9fad0LGoagE3j3l0dx9HfKZ0rm/f6Ai69RRkojY07 7JdXvF2pvYPoiKxM4jlx/AHCuE6B0NmetcUJkn10kCsyrnG5o7v7zPQLlXsOnON88iUI n4Fg== X-Gm-Message-State: AOAM530ho4cWPPE8yDejvsB3/p0Tcc/py30fCCtJkzBjd90YjKorbzpd sMIZsaoingOU6aUjq4In88+EqpEUzX1sr3DZadA= X-Google-Smtp-Source: ABdhPJyvgpAEScVi1vqP//1LepdgMzvIF821jCjKp+eZARCaZoY+kW3dECct0A2rFvibdga0ZlbdqqLT0Qrk89NwTmU= X-Received: by 2002:a25:4609:: with SMTP id t9mr2385172yba.231.1597396639023; Fri, 14 Aug 2020 02:17:19 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 14 Aug 2020 02:17:18 -0700 In-Reply-To: (Roland Kaufmann's message of "Mon, 22 Jun 2020 00:13:15 +0200") 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:185085 Archived-At: 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. This series of patches was submitted 8 weeks ago, but never got a reply at the time. Could someone with more knowledge about this please help review it? Best regards, Stefan Kangas