Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1467295imc; Mon, 11 Mar 2019 14:35:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIJdGBHgwFHEVzJgCc8oagVqJsTJQJSOH5Xw3IZ7ZSUSxk3uN/838AjOYS4S0vbS6/ikgV X-Received: by 2002:a62:e704:: with SMTP id s4mr34875688pfh.94.1552340120567; Mon, 11 Mar 2019 14:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552340120; cv=none; d=google.com; s=arc-20160816; b=YR6ZYAWW87RjLky85ET0PIuPrzRkxg4Mo7U5mEq6CcF5+9SvfiV82lhWK4Sfxg4AJa wwlV49Cm0lHNOtTZJXz09ljseKYf6YBdrwUX2rXd2ARuXzgbadg4KAAjXFcSPVOh+hlB gVWVrWHdk3iVNH27baqcpc+f7iLr7TAjSwxOOcZYJkd8USk82FYDRCN8VHqO6LbdrMWh fLmCWnlBgA890kdcVAjslfVSEHpbD6p13Wb1WwC9PdkJyKMlkV848OqAefC1xs/eDMy/ bNs8xB37+mgC7dnKvtANzeUOK4w3NhhQ04wlQXk2NKzj/0F4tWz99BUiClXh+vvJO26P 3KSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=fAxagFxrGtEHuYHeSxhy04movxzhXRT3rPVtFQ4wVw4=; b=m0CtilJ34nX85qWkDbAGo83tsSMZcJxcrGukv4U8CCHGfKl1dXFJ71xTLLQ5ayriLW LyMt97UBkvkLFWdfwsb+VRmNEZ4pfi818TtbwX3yQZY4kwSDAVlxb5nkSKJe/Nv/V61a L+tKiSs2pKGSE3bQTasve+IQw2nWJ5IufUFT2mP3a7YRodof7/GTnNH6uulnIJFr8jvM RS98L/8WfF8f5PQBHUhLHK7hTixZa22f8VE+lGTj5DVSam04fSq3pw7ks3uliLMIYvQR giaKGoMAUbmmEEyBYLRANbGxbY/PGbt4xQz7YXuABGf701QQn7j6ma3h4f5noyMQ/pwF uyGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si6673065plj.345.2019.03.11.14.35.05; Mon, 11 Mar 2019 14:35:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728274AbfCKVep convert rfc822-to-8bit (ORCPT + 99 others); Mon, 11 Mar 2019 17:34:45 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:34838 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727996AbfCKVep (ORCPT ); Mon, 11 Mar 2019 17:34:45 -0400 Received: by mail-qt1-f195.google.com with SMTP id h39so336173qte.2; Mon, 11 Mar 2019 14:34:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=nrHq7yZf8D9z0i9FW4UPhbrDKoMd6sDIcTNy4S1jgA0=; b=n419Sjr5xz1CIept8JGDD+1xeVwjqjYTDyD4wRvRR3uE26SamX3/oMTH0s0HnspfbC up2l4+mZ4eesW9hdIHYsVsbD2ef540YXDSTL9fw9Xzg/EtOHhwIMMyEcLXWpxhORYlDz Pg2kavuoFirkrYkDlIFDLC5vdAW/RZ9/5pwQFkf+tODXztjbXIr+d+1RQBlxUqRfBCAn FMbCmvGOteGPgYArCh2AkoJhr24Sx/C/j1oPYi2bt0iF/nLgt8drNYBMWryiT4bWIspK shoaqyUfR3OG4cumFKd/ZCxfRDFUrugVhED/SGhCZxBPHP4vCx1tJ7Trhja+xZKelgcj R9dw== X-Gm-Message-State: APjAAAXy5KzLsAsC25OQdiSr+E7AQQuUHCIKQQFl9fdhlLGwvvMAJop5 im7d7BwXQa45AkX4xesBhzYJedwfSznxCSK5Jb++vjh2 X-Received: by 2002:ac8:1e17:: with SMTP id n23mr5425799qtl.152.1552340083914; Mon, 11 Mar 2019 14:34:43 -0700 (PDT) MIME-Version: 1.0 References: <20190305091904.GB8256@zn.tnic> <20190305122218.GD13380@bombadil.infradead.org> <20190305134347.4be2449c@alans-desktop> <20190305145717.GD8256@zn.tnic> <20190305173134.GE8256@zn.tnic> <20190305181138.GG8256@zn.tnic> <20190305181808.GH8256@zn.tnic> In-Reply-To: From: Arnd Bergmann Date: Mon, 11 Mar 2019 22:34:26 +0100 Message-ID: Subject: Re: [PATCH] x86: Deprecate a.out support To: =?UTF-8?B?TcOlbnMgUnVsbGfDpXJk?= Cc: Linus Torvalds , Matt Turner , Borislav Petkov , Alan Cox , Matthew Wilcox , Jann Horn , Al Viro , Thomas Gleixner , kernel list , linux-fsdevel , "the arch/x86 maintainers" , Linux API , Andrew Morton , Richard Weinberger , Anton Ivanov , linux-alpha , linux-m68k Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 11, 2019 at 8:47 PM Måns Rullgård wrote: > Linus Torvalds writes: > > On Mon, Mar 11, 2019 at 11:08 AM Måns Rullgård wrote: > >> > >> The latest version I have is 5.1, and that uses ECOFF. > > > > ECOFF _is_ a.out as far as Linux is concerned. > > > > So Linux basically treats ECOFF as "regular a.out with just some > > header extensions". > > > > We don't have any specific support for ECOFF. > > > > I _think_. Again, it's been years and years. > > Right, which is why killing a.out entirely would have the unfortunate > effect of also removing the OSF/1 compatibility on Alpha. > > If we are to support Alpha as an architecture at all, it makes sense to > support the things people actually use it for. > > Now, personally I can live without it. I just don't like to see > features removed without due consideration. The main historic use case I've heard of was running Netscape Navigator on Alpha Linux, before there was an open source version. Doing this today to connect to the open internet is probably a bit pointless, but there may be other use cases. Looking at the system call table in the kernel (arch/alpha/kernel/syscalls/syscall.tbl), we seem to support a specific subset that was required for a set of applications, and not much more. Old system calls (osf_old_open, osf_execve, osf_old_sigaction) are listed but not implemented, and the same is true for most of the later calls (osf_fuser, osf_sigsendset, osf_waitid, osf_signal, ...), just the ones in the middle are there. This would also indicate that it never really worked as a general-purpose emulation layer but was only there for a specific set of applications. Another data point I have is that osf1 emulation was broken between linux-4.13 and linux-4.16 without anyone noticing, see 47669fb6b595 ("alpha: osf_sys.c: fix put_tv32 regression"). Arnd