From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by sourceware.org (Postfix) with ESMTPS id 71DB7384404C for ; Fri, 11 Jun 2021 23:01:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 71DB7384404C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=johnericson.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=johnericson.me Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 4B4B810A7; Fri, 11 Jun 2021 19:01:28 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute6.internal (MEProxy); Fri, 11 Jun 2021 19:01:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=johnericson.me; h=mime-version:message-id:date:from:to:cc:subject:content-type; s=fm3; bh=2ehoPPrqemP04g5mjeEWeq0bWK4oRa6Nzk1He8VeVNs=; b=OQu/5 mOiwLrR2qyDUqOmafPC/Ucgf8r3KjjDhFByqhHui/HKLMHnMOkFYr/0ILL0pcAeG DpOWy0pJT89MJfB0DO06RjFIEiGpSB30MsIuaKqNKSbfNIVr9R6WoP3dey28iru6 tpPC0f4mrOPXqXYkaZWvW40BIS4psSFdVRQoVhq6ZrZmQPqLjA7dtabCt5edmDQQ IuWx2o/bjljaoECb+6uzwuIn/wEZ9V+IomGFswLsMeDAlT0wn1EGO0r0rFZ05RCS yK5yNnkyOTnQgo63FBY0sEchl4hI6/c0ikBRI2f0D2F59pdPq2dw933puWagSAvQ d6OqJ2DcQ9Gp21v7Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=2ehoPPrqemP04g5mjeEWeq0bWK4oR a6Nzk1He8VeVNs=; b=E5r+RDwsRZmbUiCFDbO7NhtaEfrTPnw5wzlya4RqBEjPk jEVR1hWYx4QXT5BGR43+ktsTh5IYgdU2AR+xN/OFmpaGkVaTizN1qfaBEXiXVl0m ZqvQyenEMFXeRJKuA0Fkrr3rJWTUlHrTodgcgwR7nGO+9E2cVo5IwVMQNa8r2k0Z V6NpRbK0kBTjKkt1qqTpIQyb2lTQeslo5km34vhej5A0LfHluC6J1PLcMr040YwS 0rqiY8rWD0Ie91zefQlLfY/me5n9HzX9ExpVdebA1xjo0e52mAzac6tpnHCQySsr 1MAHKYoMsNmiS1fQEJ5QD3XLCeslHXKoJ0ESTuz2g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeduledguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpedflfhohhhnucfgrhhitghsohhnfdcuoehmrghilhesjhhohhhn vghrihgtshhonhdrmhgvqeenucggtffrrghtthgvrhhnpeekkeejveelgedtledthefhfe dtleeufeetvdeuiedvkeehlefgtdefgeelhefgveenucffohhmrghinhepghhithhhuhgs rdgtohhmpdhnvghtsghsugdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehmrghilhesjhhohhhnvghrihgtshhonhdrmhgv X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2BC92A00079; Fri, 11 Jun 2021 19:01:27 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-519-g27a961944e-fm-20210531.001-g27a96194 Mime-Version: 1.0 Message-Id: <465efd4f-542c-48b9-8f2d-081b37c872fa@www.fastmail.com> Date: Fri, 11 Jun 2021 19:01:06 -0400 From: "John Ericson" To: binutils@sourceware.org, gcc@gcc.gnu.org Cc: "Alyssa Ross" Subject: Making *-netbsd-* to mean ELF not a.out for all CPUs Content-Type: text/plain X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, KAM_INFOUSMEBIZ, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2021 23:01:33 -0000 Hello Binutils and GCC lists[1], I would like to propose that GNU tools consistently interpret configs with "netbsd" as meaning ELF as opposed to a.out. Currently, newer CPUs do that, but older ones have "netbsd" mean a.out for historical reasons, and "netbsdelf" is used instead. This inconsistency is a bit of a nuisance to my distro / package set[2] which aims to support cross compilation to/from arbitrary platforms without special cases. Other platforms that formerly used a.out (like Linux) have long since changed the default to be ELF, so I don't know why NetBSD shouldn't too. I first reached out to the NetBSD toolchain developers[3]. They convinced me some alternate disambiguater (my first suggestion) wasn't worth it, with a.out being so old. But they did offer some tentative support for my second suggestion of changing the meaning of bare "netbsd" --- "netbsdaout" would still be available to unambiguously request a.out for anyone that wants it. I come now to just ask about that second suggestion. I have prepared a first draft of patches for Binutils and GCC, but before polishing them off to submit, I figured I should ask about the openness to such a change. Thanks, John [1]: I hope it's OK to email both lists at once like this; this is a question about a change that I think only makes sense if both projects approve. [2] Nixpkgs, https://github.com/nixos/nixpkgs/ [3]: https://mail-index.netbsd.org/tech-toolchain/2021/06/10/msg003976.html this post goes more into more why I am interested in this change for anyone that's curious. Apologies for the duplicate emails; I thought the list was rejecting emails with HTML but it was something else.