From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id C86772A371BA for <9fans@9fans.net>; Fri, 19 Jun 2020 11:52:51 -0400 (EDT) (envelope-from conor.williams@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id E8504B3812E; Fri, 19 Jun 2020 11:52:51 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1592581971; b=c1ZWR0RBM7HUGhhsnBiJcjOXPTkbz5StTI8sd1iTdHAu050vNG xqJcYaS64fgd38hf5fgYD7gUiH9Kj93DPJLgDlxK8fapmlXjxfpMoJHdZRzCgTTp zkjfJ5Q7yg+7CPyX+fVAzWgodDPTLyv550rrIbsHWV56ia5B6v8Pa8AqDeURHkAp S1p9cmql9+KHtPSjTIpHFIsdUNpYIFjSPFVa9aD3f/6DK8H/R/8Rf9ahLoFoPRwS LA7LTYeRfL9uUn/+D4tSx2bn8aK4kYqK1wl/gM1l/XJzo/JFClyMH7BZG4mdQQ4g UhV1na/e4DTJEyspgJpgabGJz2V77T8utnaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1592581971; bh=+JpbCj0YkTE96bt67l1Tm7vCM+LEIF8VQdWJRntOl7A=; b=JY+i1wVWxE79 RAe4EO2YRwsLZcGYasBV8ha/zntfZauJi8XtwzSreJXOP6MxkZuFgT14KC76yyGt FzRFnl2dqpD/r7HY+73qSbzc7BGbWjitVvIY/V2Hklq4PTcRl0ARHI3BF62R00Ot +yuVEpYaVNIliJKz5kWkPIBC1ngkJyvDXdA9ZhEvR2zHAp4EhRF0Bin55So7XOMx S4FOLoyM5GTyJEM7rtSb+6M3mpitWXpDGcHsPhsPDQP4x1Rub4zNPiyWjR7taglJ Kbd4Evr66KvYq+EgqbrWS9macWU5WYAqxa9dlRXj6AjkGEsdVtrF0Uc93d7VMLvb yQ0WgRRBSQ== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=none (Domain is not BIMI enabled); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=rflYc9p4 header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.221.52 (mail-wr1-f52.google.com); spf=pass smtp.mailfrom=conor.williams@gmail.com smtp.helo=mail-wr1-f52.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=EjytOVd+; x-ptr=pass smtp.helo=mail-wr1-f52.google.com policy.ptr=mail-wr1-f52.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=-51 state=0 Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=none (Domain is not BIMI enabled); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=rflYc9p4 header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.221.52 (mail-wr1-f52.google.com); spf=pass smtp.mailfrom=conor.williams@gmail.com smtp.helo=mail-wr1-f52.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=EjytOVd+; x-ptr=pass smtp.helo=mail-wr1-f52.google.com policy.ptr=mail-wr1-f52.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=-51 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeduhedrudejiedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnegoufhushhpvggtthffohhmrghinhculdegledmnecujfgurhep gghfjgfhfffkuffvtgesrgdtreertddtjeenucfhrhhomhepvehonhhorhcuhghilhhlih grmhhsuceotghonhhorhdrfihilhhlihgrmhhssehgmhgrihhlrdgtohhmqeenucggtffr rghtthgvrhhnpeelvdeujeeuiefghfevudejffeuffejudefheehieeilefgheduleelge evueevieenucffohhmrghinheplehprdhiohdpthhlughprdhorhhgpdifihhkihhpvggu ihgrrdhorhhgpdgsihiirdhtmhdpghhoohhglhgvrdgtohhmpdhgihhthhhusgdrtghomh dpthhophhitggsohigrdgtohhmnecukfhppedvtdelrdekhedrvddvuddrhedvnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddtledrkeehrddvvddurd ehvddphhgvlhhopehmrghilhdqfihruddqfhehvddrghhoohhglhgvrdgtohhmpdhmrghi lhhfrhhomhepoegtohhnohhrrdifihhllhhirghmshesghhmrghilhdrtghomhequcfukf gkgfepkeejleejhe X-ME-VSScore: -51 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'conor.williams@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="conor.williams@gmail.com"; helo=mail-wr1-f52.google.com; client-ip=209.85.221.52 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Fri, 19 Jun 2020 11:52:51 -0400 (EDT) (envelope-from conor.williams@gmail.com) Received: by mail-wr1-f52.google.com with SMTP id o11so2454907wrv.9 for <9fans@9fans.net>; Fri, 19 Jun 2020 08:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=+JpbCj0YkTE96bt67l1Tm7vCM+LEIF8VQdWJRntOl7A=; b=rflYc9p4qC9l4XoeaAR/CJi1LlIjxqVkfgXclbUC1NzRWNkmcAl+p3IQCC+ezOkCqn hgFTe8I53LUHIx0SY8B4/6n+ZOL4jItIoK+AgGafY1KIpHxhbL7AXRjErPKejW++p/fH hTYfGQH+A/A/4mAE3DTHHbCvUEIJa8ujFDIlQriD8vV92LDh512RqWlkeBBnJlIFvrPB NzJScIDZlrjXV8fcBKR92edaXXSVZmU6wlQYUN/j7/KjHpys1AUzmHFkKQkgT2FLl3q3 +51SOulvFvsYK6HfZHlLhj+nqOsOGQU67Uwor5rj0vdfFr1bD81bDg1yfNFf4QXp1Npu RXrg== 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; bh=+JpbCj0YkTE96bt67l1Tm7vCM+LEIF8VQdWJRntOl7A=; b=EjytOVd+6pokm+uz09MhagNs6K5zL5goWIZxobhQtPAizMEUXW6akpQmJEIBzT//jO ePXFpw41FXKZ9GEMglAysNB6zAa3R+uLuzcSDig411l1wI6NgmGDItfMP12RLGZznk/d C0YLfFhPFnVEYk3a6bVz0bJ7/Ez/pdVTq8jUrIJKvO0ga+0B0+votwcSrVfMF/oAk/qs PAuaESFZGWumSAK8Ov3FgSq5TyEXwuK/Dq/McoK5Dv6w0Yq9tzhfXQ0jHOAWC8AJ3LWo D1pvV9RuhRj8kckSBQuKCQ6TxhGSpZnaJJAey63McSNf8spMIDrDsN5DlJb35N1N1QXu Px6w== X-Gm-Message-State: AOAM533RWqFgKerdHdo4B696QdsSjB4tP5T49xGdBfb1q+C9TqXw0Vb3 YqhlV866cXISHCIMTChnS+MdUAiELIIJh+whVFU= X-Google-Smtp-Source: ABdhPJxeZQPapDc6Yzjc9CiWfCFBnbhGdujG6WR7ENwzblUztHlaHc1IDFHa+PNqUU1tkBvPSiuIb9B6aGghR/Vvu0c= X-Received: by 2002:adf:f3cf:: with SMTP id g15mr4326031wrp.388.1592581969793; Fri, 19 Jun 2020 08:52:49 -0700 (PDT) MIME-Version: 1.0 References: <20200617032730.tj6dxckg444u5czq@Hugin> <20200617082616.qg5jv66tbpsgpy6r@Hugin> <20200617121723.3kwgd45fgwv6cwg5@Hugin> <20200619103652.r6cv44eemckqi6zo@Hugin> In-Reply-To: <20200619103652.r6cv44eemckqi6zo@Hugin> From: Conor Williams Date: Fri, 19 Jun 2020 16:52:38 +0100 Message-ID: Subject: Re: [9fans] plan9 vs aout To: Jens Staal , Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="00000000000095d6f305a871e269" Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: f17c1a12-b244-11ea-940d-f901b5fc970c --00000000000095d6f305a871e269 Content-Type: text/plain; charset="UTF-8" Here you go Jens If theres a problem with it check the jpg from before as i transcribed the asm It should be ok though Kind Regards Conor .text .LC0 .ascii "Hello World\0" .balign 4 .global main main: pushl %ebp movl %esp, %ebp subl $*, %esp call __main subl $12, %esb pushl printf addl $16, %esp leave ret On Fri, Jun 19, 2020 at 11:36 AM Jens Staal wrote: > Well the thing is still to figure out how to make a functional cross > compiler > from the recent binutils and gcc. I have gone through the code that I > moved from > the old 2.11/3.0 ports to binutils/gcc and it seems like I have covered it > all. > > I suppose I should try to export the output from the old gcc 3.0 > gcc -S Hello.c and then use that output to try to test the newer binutils > as and > ld using the old libgcc and libc from the 3.0 port. > > Could you send the Hello.S you got from gcc 3.0? > > If the new binutils is working to make a functional i386-plan9 executable, > I > should focus on trying to make the new gcc compile and then test that one > too in > the same way as cross compiler using the old libc and new binutils, and > then > compile a new libc using the new gcc. > > I ended up in the mess of the as because I wanted to do an intermediate > test of > the binutils before moving on to gcc... > > On Fri, Jun 19, 2020 at 10:16:35AM +0100, Conor Williams wrote: > > where to next Jens or are you ok again?... > > > > On Wed, Jun 17, 2020 at 4:45 PM Conor Williams > > > wrote: > > > > > yes, the 3.0 port... > > > > > > > > > > > > On Wed, Jun 17, 2020 at 1:17 PM Jens Staal > wrote: > > > > > >> Great > > >> > > >> This was with the old 3.0 port? > > >> > > >> On Wed, Jun 17, 2020 at 10:25:46AM +0100, Conor Williams wrote: > > >> > wahoo i got it compiled in stages... > > >> > > > >> > i386...gcc -S hello.c > > >> > i386...as -o hello.o hello.S > > >> > i386....ld crt0.o hello.o -L. -lgcc -lc -lgcc > > >> > > > >> > # ./a.out > > >> > Hello World! > > >> > # > > >> > > > >> > > > >> > On Wed, Jun 17, 2020 at 9:40 AM Conor Williams < > > >> conor.williams@gmail.com> > > >> > wrote: > > >> > > > >> > > ok, kewl... > > >> > > > > >> > > it turns out that as creates an intermediate object file which > > >> happens to > > >> > > be, i feel, incorrectly > > >> > > called a.out... > > >> > > > > >> > > im not quite there but you send this file to > 'i386-lucent-plan9-ld' > > >> and > > >> > > link them all > > >> > > > > >> > > something like this: > > >> > > > > >> > > i386-lucent-plan9-ld -o print3 libgcc.a libc.a print3.o > > >> > > > > >> > > (where print3.o is the output from i386-lucent-plan9-ld) > > >> > > (i got the i386-lucent-plan9-gcc from > > >> > > https://9p.io/sources/extra/gcc/gnubin.tgz) > > >> > > > > >> > > On Wed, Jun 17, 2020 at 9:26 AM Jens Staal > > >> wrote: > > >> > > > > >> > >> The reason I tested as on and asm file was because I have > managed to > > >> build > > >> > >> binutils with i386-plan9 target, but not gcc yet. > > >> > >> > > >> > >> On Wed, Jun 17, 2020 at 09:09:46AM +0100, Conor Williams wrote: > > >> > >> > i got gcc to create an a.out and it is 18k in size so i think > > >> > >> > 'i386-lucent-plan9-as' > > >> > >> > should be passed command line params to get it to load some > > >> external > > >> > >> libs > > >> > >> > etc... > > >> > >> > > > >> > >> > attached is asm generated by plan9 gcc on plan 9 using the same > > >> gcc that > > >> > >> > created a proper a.out > > >> > >> > > > >> > >> > a quick question - why are you 'as' to do this and not gcc?... > > >> > >> > > > >> > >> > On Wed, Jun 17, 2020 at 8:03 AM Conor Williams < > > >> > >> conor.williams@gmail.com> > > >> > >> > wrote: > > >> > >> > > > >> > >> > > do a gcc -S hello.c > > >> > >> > > with a printf("helo world"); in it... > > >> > >> > > > > >> > >> > > On Wed, Jun 17, 2020 at 4:27 AM Jens Staal < > staal1978@gmail.com> > > >> > >> wrote: > > >> > >> > > > > >> > >> > >> This is really weird. The only thing I can think of is that > > >> > >> something is > > >> > >> > >> wrong > > >> > >> > >> with the Hello.S example that I downloaded from here: > > >> > >> > >> https://www.tldp.org/HOWTO/Assembly-HOWTO/hello.html > > >> > >> > >> > > >> > >> > >> basically the same here: > > >> > >> > >> https://en.wikipedia.org/wiki/GNU_Assembler > > >> > >> > >> > > >> > >> > >> but I now noticed something: I think the 0x80 is a 32 bit > > >> > >> Linux-specific > > >> > >> > >> thing so the > > >> > >> > >> code is perhaps non-portable.... > > >> > >> > >> > > >> > >> > >> I have now tested as from the old binutils 2.22 and 2.11 > that > > >> were > > >> > >> native > > >> > >> > >> on > > >> > >> > >> Plan9. I know for a fact that they should work but both also > > >> gave > > >> > >> the same > > >> > >> > >> error, so most likely the example asm file that I have been > > >> trying > > >> > >> is not > > >> > >> > >> appropriate. > > >> > >> > >> > > >> > >> > >> No idea what the i386-plan9 variant of 0x80 would be. > > >> > >> > >> > > >> > >> > >> Grrr! > > >> > >> > >> > > >> > >> > >> On Tue, Jun 16, 2020 at 11:24:08PM +0100, Conor Williams > wrote: > > >> > >> > >> > i386-as-plan9 -march i386 Hello.S > > >> > >> > >> > > > >> > >> > >> > doesnt create an i386 binary my friend... > > >> > >> > >> > > > >> > >> > >> > On Tue, Jun 16, 2020 at 11:09 PM Conor Williams < > > >> > >> > >> conor.williams@gmail.com> > > >> > >> > >> > wrote: > > >> > >> > >> > > > >> > >> > >> > > it turns out that, that a.out is a 68020 binary > > >> > >> > >> > > > > >> > >> > >> > > On Tue, Jun 16, 2020 at 10:03 PM Conor Williams < > > >> > >> > >> conor.williams@gmail.com> > > >> > >> > >> > > wrote: > > >> > >> > >> > > > > >> > >> > >> > >> ok... i agree... > > >> > >> > >> > >> > > >> > >> > >> > >> On Tue, Jun 16, 2020 at 8:02 PM Jens Staal < > > >> staal1978@gmail.com > > >> > >> > > > >> > >> > >> wrote: > > >> > >> > >> > >> > > >> > >> > >> > >>> ok that is weird. I got the same error with the > > >> > >> > >> i386-lucent-plan9-as on > > >> > >> > >> > >>> Plan9 > > >> > >> > >> > >>> (a.out attached) > > >> > >> > >> > >>> > > >> > >> > >> > >>> I only copied the as so there is no strip involved. > > >> > >> > >> > >>> > > >> > >> > >> > >>> > > >> > >> > >> > >>> On Tue, Jun 16, 2020 at 06:12:08PM +0100, Conor > Williams > > >> wrote: > > >> > >> > >> > >>> > one thing before i delve into a linux vdi - that > a.out > > >> is > > >> > >> > >> stripped, > > >> > >> > >> > >>> can you > > >> > >> > >> > >>> > send me the non-stripped version... > > >> > >> > >> > >>> > > > >> > >> > >> > >>> > On Tue, Jun 16, 2020 at 6:04 PM Conor Williams < > > >> > >> > >> > >>> conor.williams@gmail.com> > > >> > >> > >> > >>> > wrote: > > >> > >> > >> > >>> > > > >> > >> > >> > >>> > > right... > > >> > >> > >> > >>> > > > > >> > >> > >> > >>> > > On Tue, Jun 16, 2020 at 5:56 PM Jens Staal < > > >> > >> staal1978@gmail.com > > >> > >> > >> > > > >> > >> > >> > >>> wrote: > > >> > >> > >> > >>> > > > > >> > >> > >> > >>> > >> yes that is plan9 asm from the i386 compiler 8c. > > >> > >> > >> > >>> > >> > > >> > >> > >> > >>> > >> Unfortunately, there are different asm dialects > and > > >> gcc > > >> > >> uses > > >> > >> > >> gas. It > > >> > >> > >> > >>> > >> would otherwise have been awesome if one could > just > > >> > >> replace 8c > > >> > >> > >> with > > >> > >> > >> > >>> gcc and > > >> > >> > >> > >>> > >> use the regular native stuff under it. > > >> > >> > >> > >>> > >> > > >> > >> > >> > >>> > >> Den tis 16 juni 2020 18:23Conor Williams < > > >> > >> > >> conor.williams@gmail.com> > > >> > >> > >> > >>> > >> skrev: > > >> > >> > >> > >>> > >> > > >> > >> > >> > >>> > >>> let me know what you think of the attached > > >> picture... > > >> > >> > >> > >>> > >>> > > >> > >> > >> > >>> > >>> On Tue, Jun 16, 2020 at 3:37 PM Conor Williams < > > >> > >> > >> > >>> conor.williams@gmail.com> > > >> > >> > >> > >>> > >>> wrote: > > >> > >> > >> > >>> > >>> > > >> > >> > >> > >>> > >>>> ok... > > >> > >> > >> > >>> > >>>> > > >> > >> > >> > >>> > >>>> i setup an anonymous ftp server on my windows > box > > >> to > > >> > >> transfer > > >> > >> > >> > >>> files... > > >> > >> > >> > >>> > >>>> (the new version of VirtualBox does > > >> > >> > >> > >>> > >>>> not easily support file sharing) > > >> > >> > >> > >>> > >>>> > > >> > >> > >> > >>> > >>>> > > >> > >> > >> > >>> > >>>> > > >> > >> > >> > >>> > >>>> On Tue, Jun 16, 2020 at 3:23 PM Jens Staal < > > >> > >> > >> staal1978@gmail.com> > > >> > >> > >> > >>> wrote: > > >> > >> > >> > >>> > >>>> > > >> > >> > >> > >>> > >>>>> I noticed that the "gnubin" tarball linked on > > >> > >> > >> > >>> > >>>>> https://marcus.biz.tm/jail/ is on > > >> > >> > >> > >>> > >>>>> google drive so it is not as slow download as > > >> > >> everything > > >> > >> > >> else > > >> > >> > >> > >>> from > > >> > >> > >> > >>> > >>>>> that site. > > >> > >> > >> > >>> > >>>>> > > >> > >> > >> > >>> > >>>>> > > >> > >> > >> > https://drive.google.com/open?id=0B6YNt0aHfaA0TkREcmdQdWVhY0E > > >> > >> > >> > >>> > >>>>> > > >> > >> > >> > >>> > >>>>> He has packaged it a bit strange as /usr/pkg/ > > >> which > > >> > >> does not > > >> > >> > >> > >>> make sense > > >> > >> > >> > >>> > >>>>> considering the plan9 directory structure, but > > >> perhaps > > >> > >> one > > >> > >> > >> can > > >> > >> > >> > >>> test > > >> > >> > >> > >>> > >>>>> the output > > >> > >> > >> > >>> > >>>>> from that "as" too when run under Plan9. > > >> > >> > >> > >>> > >>>>> > > >> > >> > >> > >>> > >>>>> I have an issue moving stuff between my plan9 > > >> systems > > >> > >> and my > > >> > >> > >> > >>> Linux > > >> > >> > >> > >>> > >>>>> system at the > > >> > >> > >> > >>> > >>>>> moment (dual booting 9front, put stuff I want > to > > >> move > > >> > >> > >> between the > > >> > >> > >> > >>> > >>>>> systems in the > > >> > >> > >> > >>> > >>>>> ESP partition = limited space, run 9front in > > >> > >> Virtualbox, no > > >> > >> > >> idea > > >> > >> > >> > >>> how > > >> > >> > >> > >>> > >>>>> to share files between my > > >> > >> > >> > >>> > >>>>> Linux host and the VM). > > >> > >> > >> > >>> > >>>>> > > >> > >> > >> > >>> > >>>>> On Tue, Jun 16, 2020 at 03:02:40PM +0100, > Conor > > >> > >> Williams > > >> > >> > >> wrote: > > >> > >> > >> > >>> > >>>>> > ok, thanks Jens, im going to run a hex > editor, > > >> 'od', > > >> > >> on > > >> > >> > >> a.out > > >> > >> > >> > >>> and > > >> > >> > >> > >>> > >>>>> have a > > >> > >> > >> > >>> > >>>>> > look as im getting: > > >> > >> > >> > >>> > >>>>> > "exec: header invalid" > > >> > >> > >> > >>> > >>>>> > also. > > >> > >> > >> > >>> > >>>>> > > > >> > >> > >> > >>> > >>>>> > On Tue, Jun 16, 2020 at 10:49 AM Jens Staal > < > > >> > >> > >> > >>> staal1978@gmail.com> > > >> > >> > >> > >>> > >>>>> wrote: > > >> > >> > >> > >>> > >>>>> > > > >> > >> > >> > >>> > >>>>> > > this is what I get when I do > > >> i386-lucent-plan9-as > > >> > >> with > > >> > >> > >> my new > > >> > >> > >> > >>> > >>>>> binutils on > > >> > >> > >> > >>> > >>>>> > > Hello.S. > > >> > >> > >> > >>> > >>>>> > > > > >> > >> > >> > >>> > >>>>> > > I have not tried the old gcc/binutils > ports > > >> > >> running on > > >> > >> > >> Plan9 > > >> > >> > >> > >>> on > > >> > >> > >> > >>> > >>>>> this asm > > >> > >> > >> > >>> > >>>>> > > file. > > >> > >> > >> > >>> > >>>>> > > > > >> > >> > >> > >>> > >>>>> > > On Tue, Jun 16, 2020 at 09:54:07AM +0100, > > >> Conor > > >> > >> Williams > > >> > >> > >> > >>> wrote: > > >> > >> > >> > >>> > >>>>> > > > ok, cool cool... and you translate this > > >> assembler > > >> > >> > >> file to > > >> > >> > >> > >>> binary > > >> > >> > >> > >>> > >>>>> on Plan > > >> > >> > >> > >>> > >>>>> > > 9, > > >> > >> > >> > >>> > >>>>> > > > how?... > > >> > >> > >> > >>> > >>>>> > > > > > >> > >> > >> > >>> > >>>>> > > > does the cross compiler not create a > > >> binary?... > > >> > >> could > > >> > >> > >> you > > >> > >> > >> > >>> send > > >> > >> > >> > >>> > >>>>> me that > > >> > >> > >> > >>> > >>>>> > > > too?... > > >> > >> > >> > >>> > >>>>> > > > > > >> > >> > >> > >>> > >>>>> > > > Kind Regards > > >> > >> > >> > >>> > >>>>> > > > Conor > > >> > >> > >> > >>> > >>>>> > > > > > >> > >> > >> > >>> > >>>>> > > > On Tue, Jun 16, 2020 at 4:45 AM Jens > Staal < > > >> > >> > >> > >>> staal1978@gmail.com> > > >> > >> > >> > >>> > >>>>> wrote: > > >> > >> > >> > >>> > >>>>> > > > > > >> > >> > >> > >>> > >>>>> > > > > Hi Conor > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> > >> > >>> > >>>>> > > > > I am currently focusing on getting the > > >> modern > > >> > >> gcc > > >> > >> > >> and > > >> > >> > >> > >>> binutils > > >> > >> > >> > >>> > >>>>> to work > > >> > >> > >> > >>> > >>>>> > > as > > >> > >> > >> > >>> > >>>>> > > > > cross > > >> > >> > >> > >>> > >>>>> > > > > compilers, so I build on Linux at the > > >> moment. > > >> > >> As > > >> > >> > >> can be > > >> > >> > >> > >>> seen > > >> > >> > >> > >>> > >>>>> on the > > >> > >> > >> > >>> > >>>>> > > > > comparison > > >> > >> > >> > >>> > >>>>> > > > > below: > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> https://github.com/staalmannen/gcc/pull/3/files > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> > >> https://github.com/staalmannen/binutils-gdb/pull/3/files > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> > >> > >>> > >>>>> > > > > there are several other changes > needed to > > >> > >> build on > > >> > >> > >> Plan9 > > >> > >> > >> > >>> > >>>>> related to > > >> > >> > >> > >>> > >>>>> > > missing > > >> > >> > >> > >>> > >>>>> > > > > flags in the APE utilities (mv -f, ls > > >> -di). I > > >> > >> think > > >> > >> > >> the > > >> > >> > >> > >>> > >>>>> cleaner way to > > >> > >> > >> > >>> > >>>>> > > > > deal with > > >> > >> > >> > >>> > >>>>> > > > > those would be to make some rc script > > >> wrappers > > >> > >> that > > >> > >> > >> > >>> catches > > >> > >> > >> > >>> > >>>>> those > > >> > >> > >> > >>> > >>>>> > > flags and > > >> > >> > >> > >>> > >>>>> > > > > change them to something reasonable > (mv, > > >> ls -d) > > >> > >> > >> rather > > >> > >> > >> > >>> than > > >> > >> > >> > >>> > >>>>> changing > > >> > >> > >> > >>> > >>>>> > > the > > >> > >> > >> > >>> > >>>>> > > > > source > > >> > >> > >> > >>> > >>>>> > > > > code of gcc in a way that would > interfere > > >> with > > >> > >> > >> building > > >> > >> > >> > >>> it on > > >> > >> > >> > >>> > >>>>> other > > >> > >> > >> > >>> > >>>>> > > hosts. > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> > >> > >>> > >>>>> > > > > There are i386-Plan9 gcc/binutils + > APE > > >> library > > >> > >> > >> binaries > > >> > >> > >> > >>> for > > >> > >> > >> > >>> > >>>>> > > > > 3.0 > > >> > >> > >> > >>> > >>>>> > > > > https://9p.io/sources/extra/gcc/ > > >> > >> > >> > >>> > >>>>> > > > > and 4.8.3 > > >> > >> > >> > >>> > >>>>> > > > > https://marcus.biz.tm/jail/ > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> > >> > >>> > >>>>> > > > > Perhaps the 4.8.3 variant will be > able to > > >> > >> build gcc > > >> > >> > >> 10 / > > >> > >> > >> > >>> > >>>>> binutils 2.34 > > >> > >> > >> > >>> > >>>>> > > > > natively > > >> > >> > >> > >>> > >>>>> > > > > on Plan9, but my bet is on a cross > > >> compiler > > >> > >> first, > > >> > >> > >> which > > >> > >> > >> > >>> then > > >> > >> > >> > >>> > >>>>> can be > > >> > >> > >> > >>> > >>>>> > > used > > >> > >> > >> > >>> > >>>>> > > > > to > > >> > >> > >> > >>> > >>>>> > > > > cross compile gcc/binutils to Plan9 > for > > >> gcc as > > >> > >> > >> native > > >> > >> > >> > >>> compiler. > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> > >> > >>> > >>>>> > > > > I will set up a repo for the APE > > >> libraries for > > >> > >> gcc, > > >> > >> > >> but > > >> > >> > >> > >>> of > > >> > >> > >> > >>> > >>>>> course we > > >> > >> > >> > >>> > >>>>> > > first > > >> > >> > >> > >>> > >>>>> > > > > need > > >> > >> > >> > >>> > >>>>> > > > > to get binutils and gcc working > before we > > >> can > > >> > >> try to > > >> > >> > >> > >>> compile > > >> > >> > >> > >>> > >>>>> anything, > > >> > >> > >> > >>> > >>>>> > > > > including > > >> > >> > >> > >>> > >>>>> > > > > the c library... > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> > >> > >>> > >>>>> > > > > Attached is the Hello.S I used for > testing > > >> > >> (copied > > >> > >> > >> from > > >> > >> > >> > >>> > >>>>> Internet) > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> > >> > >>> > >>>>> > > > > On Mon, Jun 15, 2020 at 08:02:21PM > +0100, > > >> Conor > > >> > >> > >> Williams > > >> > >> > >> > >>> wrote: > > >> > >> > >> > >>> > >>>>> > > > > > hello Jens > > >> > >> > >> > >>> > >>>>> > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > I have my Plan 9 virtual machine up > and > > >> > >> running... > > >> > >> > >> > >>> > >>>>> > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > to start me off, can you send me the > > >> "Hello. > > >> > >> S" > > >> > >> > >> binary > > >> > >> > >> > >>> > >>>>> > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > also, to clarify, you are running > the > > >> > >> compiler on > > >> > >> > >> a > > >> > >> > >> > >>> *Linux* > > >> > >> > >> > >>> > >>>>> box > > >> > >> > >> > >>> > >>>>> > > creating > > >> > >> > >> > >>> > >>>>> > > > > > the binary for Plan 9? > > >> > >> > >> > >>> > >>>>> > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > Regards > > >> > >> > >> > >>> > >>>>> > > > > > Conor (Williams) > > >> > >> > >> > >>> > >>>>> > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > Regards > > >> > >> > >> > >>> > >>>>> > > > > > Conor > > >> > >> > >> > >>> > >>>>> > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > On Tue, Jun 9, 2020 at 9:03 PM Jens > > >> Staal < > > >> > >> > >> > >>> > >>>>> staal1978@gmail.com> > > >> > >> > >> > >>> > >>>>> > > wrote: > > >> > >> > >> > >>> > >>>>> > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > I have now added 2 more branches > for > > >> > >> reference > > >> > >> > >> from > > >> > >> > >> > >>> the > > >> > >> > >> > >>> > >>>>> updated > > >> > >> > >> > >>> > >>>>> > > port of > > >> > >> > >> > >>> > >>>>> > > > > > > gcc and > > >> > >> > >> > >>> > >>>>> > > > > > > binutils to i386-plan9 from > > >> > >> > >> > >>> https://marcus.biz.tm/jail/ : > > >> > >> > >> > >>> > >>>>> > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > binutils-2_22-plan9 > > >> > >> > >> > >>> > >>>>> > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > gcc-4.8-plan9 > > >> > >> > >> > >>> > >>>>> > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > Hopefully there are some clues > there > > >> to > > >> > >> help > > >> > >> > >> making a > > >> > >> > >> > >>> > >>>>> working > > >> > >> > >> > >>> > >>>>> > > current > > >> > >> > >> > >>> > >>>>> > > > > > > i386-plan9 cross > > >> > >> > >> > >>> > >>>>> > > > > > > compiler. > > >> > >> > >> > >>> > >>>>> > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > On Tue, Jun 02, 2020 at 02:36:38PM > > >> +0200, > > >> > >> Jens > > >> > >> > >> Staal > > >> > >> > >> > >>> wrote: > > >> > >> > >> > >>> > >>>>> > > > > > > > Dear all, > > >> > >> > >> > >>> > >>>>> > > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > First a bit of background: > > >> > >> > >> > >>> > >>>>> > > > > > > > I am currently attempting to > update > > >> the > > >> > >> old > > >> > >> > >> > >>> i386-plan9 > > >> > >> > >> > >>> > >>>>> target for > > >> > >> > >> > >>> > >>>>> > > > > > > binutils/gcc > > >> > >> > >> > >>> > >>>>> > > > > > > > in order to generate a modern > cross > > >> > >> compiler > > >> > >> > >> > >>> targeting > > >> > >> > >> > >>> > >>>>> plan9. > > >> > >> > >> > >>> > >>>>> > > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > I have extracted the changes > done > > >> to gcc > > >> > >> 3.0 > > >> > >> > >> and > > >> > >> > >> > >>> > >>>>> binutils 2.11.2 > > >> > >> > >> > >>> > >>>>> > > > > from: > > >> > >> > >> > >>> > >>>>> > > > > > > > > https://9p.io/sources/extra/gcc/ > > >> > >> > >> > >>> > >>>>> > > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > My binutils and gcc attempts > can be > > >> > >> found at: > > >> > >> > >> > >>> > >>>>> > > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > > https://github.com/staalmannen/gcc > > >> > >> > >> > >>> > >>>>> > > > > > > > branch plan9 : porting attempt > to > > >> > >> current gcc > > >> > >> > >> (10) > > >> > >> > >> > >>> > >>>>> > > > > > > > branch gcc-3.0-plan9 : original > port > > >> > >> added to > > >> > >> > >> the > > >> > >> > >> > >>> 3.0 > > >> > >> > >> > >>> > >>>>> branch > > >> > >> > >> > >>> > >>>>> > > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > > > >> > >> https://github.com/staalmannen/binutils-gdb > > >> > >> > >> > >>> > >>>>> > > > > > > > branch plan9: porting attempt to > > >> current > > >> > >> > >> binutils > > >> > >> > >> > >>> (2.34) > > >> > >> > >> > >>> > >>>>> > > > > > > > branch binutils-2_11-plan9 : > > >> original > > >> > >> port > > >> > >> > >> added > > >> > >> > >> > >>> to the > > >> > >> > >> > >>> > >>>>> 2.11 > > >> > >> > >> > >>> > >>>>> > > branch > > >> > >> > >> > >>> > >>>>> > > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > Definitely not just a > copy-and-paste > > >> > >> endeavour > > >> > >> > >> > >>> > >>>>> unfortunately. > > >> > >> > >> > >>> > >>>>> > > The old > > >> > >> > >> > >>> > >>>>> > > > > > > port > > >> > >> > >> > >>> > >>>>> > > > > > > > almost 20 years old and some > style > > >> and > > >> > >> > >> structure > > >> > >> > >> > >>> changes > > >> > >> > >> > >>> > >>>>> have > > >> > >> > >> > >>> > >>>>> > > > > happened > > >> > >> > >> > >>> > >>>>> > > > > > > in that > > >> > >> > >> > >>> > >>>>> > > > > > > > time. > > >> > >> > >> > >>> > >>>>> > > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > I have built a binutils variant > but > > >> when > > >> > >> I > > >> > >> > >> try to > > >> > >> > >> > >>> > >>>>> compile a > > >> > >> > >> > >>> > >>>>> > > "Hello.S" > > >> > >> > >> > >>> > >>>>> > > > > > > with > > >> > >> > >> > >>> > >>>>> > > > > > > > i386-lucent-plan9-as and > execute it > > >> > >> under i386 > > >> > >> > >> > >>> 9front, I > > >> > >> > >> > >>> > >>>>> get an > > >> > >> > >> > >>> > >>>>> > > error > > >> > >> > >> > >>> > >>>>> > > > > > > about > > >> > >> > >> > >>> > >>>>> > > > > > > > incorrect file header, so > something > > >> is > > >> > >> wrong. > > >> > >> > >> > >>> > >>>>> > > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > What I learned from looking at > the > > >> old > > >> > >> port > > >> > >> > >> and > > >> > >> > >> > >>> trying > > >> > >> > >> > >>> > >>>>> to adapt > > >> > >> > >> > >>> > >>>>> > > it to > > >> > >> > >> > >>> > >>>>> > > > > > > compile in > > >> > >> > >> > >>> > >>>>> > > > > > > > a modern binutils background is > > >> that a > > >> > >> lot of > > >> > >> > >> it is > > >> > >> > >> > >>> > >>>>> basically > > >> > >> > >> > >>> > >>>>> > > copied > > >> > >> > >> > >>> > >>>>> > > > > > > from the > > >> > >> > >> > >>> > >>>>> > > > > > > > generic aout target (I have some > > >> > >> uncommitted > > >> > >> > >> > >>> changes > > >> > >> > >> > >>> > >>>>> where I am > > >> > >> > >> > >>> > >>>>> > > > > updating > > >> > >> > >> > >>> > >>>>> > > > > > > the > > >> > >> > >> > >>> > >>>>> > > > > > > > obj-plan9 files to modern > modified > > >> > >> obj-aout > > >> > >> > >> files > > >> > >> > >> > >>> with > > >> > >> > >> > >>> > >>>>> the > > >> > >> > >> > >>> > >>>>> > > original > > >> > >> > >> > >>> > >>>>> > > > > > > changes > > >> > >> > >> > >>> > >>>>> > > > > > > > applied). > > >> > >> > >> > >>> > >>>>> > > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > So to my question: what are the > > >> > >> differences > > >> > >> > >> > >>> between the > > >> > >> > >> > >>> > >>>>> plan9 > > >> > >> > >> > >>> > >>>>> > > file > > >> > >> > >> > >>> > >>>>> > > > > > > format and > > >> > >> > >> > >>> > >>>>> > > > > > > > what binutils would see as > generic > > >> aout? > > >> > >> > >> > >>> > >>>>> > > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > PS. If someone would be > interested > > >> to > > >> > >> help > > >> > >> > >> out, > > >> > >> > >> > >>> you are > > >> > >> > >> > >>> > >>>>> more than > > >> > >> > >> > >>> > >>>>> > > > > > > welcome ;) DS. > > >> > >> > >> > >>> > >>>>> > > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > > > >> ------------------------------------------ > > >> > >> > >> > >>> > >>>>> > > > > > > 9fans: 9fans > > >> > >> > >> > >>> > >>>>> > > > > > > Permalink: > > >> > >> > >> > >>> > >>>>> > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> > >> > >>> > >>>>> > > > > >> > >> > >> > >>> > >>>>> > > >> > >> > >> > >>> > > >> > >> > >> > > >> > >> > > >> > https://9fans.topicbox.com/groups/9fans/T0d486ca41e37210d-M8f436975b50638e15cf50fdd > > >> > >> > >> > >>> > >>>>> > > > > > > Delivery options: > > >> > >> > >> > >>> > >>>>> > > > > >> > >> https://9fans.topicbox.com/groups/9fans/subscription > > >> > >> > >> > >>> > >>>>> > > > > > > > > >> > >> > >> > >>> > >>>>> > > > > > > >> > >> > >> > >>> > >>>>> > > > > >> > >> > >> > >>> > >>>>> > > >> > >> > >> > >>> > >>>> > > >> > >> > >> > >>> > > >> > >> > >> > >> > > >> > >> > >> > > >> > >> > > > > >> > >> > > >> > >> > > >> > >> > > >> > > > > --00000000000095d6f305a871e269 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Here you go Jens
If theres a problem with i= t check the jpg from before
as i transcribed the asm
It= should be ok though
Kind Regards
Conor

<= /div>
=C2=A0 =C2=A0.text
.LC0
=C2=A0 =C2=A0.ascii &= quot;Hello World\0"
=C2=A0 =C2=A0.balign 4
.global= =C2=A0main
main:
=C2=A0 =C2=A0 pushl %ebp
=C2= =A0 =C2=A0 movl=C2=A0 %esp, %ebp
=C2=A0 =C2=A0 subl $*, %esp
=C2=A0 =C2=A0 call __main
=C2=A0 =C2=A0 subl $12, %esb
=C2=A0 =C2=A0 pushl=C2=A0 printf
=C2=A0 =C2=A0 addl=C2=A0 $= 16, %esp
=C2=A0 =C2=A0 leave
=C2=A0 =C2=A0 ret

On = Fri, Jun 19, 2020 at 11:36 AM Jens Staal <staal1978@gmail.com> wrote:
Well the thing is still to figure out how to ma= ke a functional cross compiler
from the recent binutils and gcc. I have gone through the code that I moved= from
the old 2.11/3.0 ports to binutils/gcc and it seems like I have covered it = all.

I suppose I should try to export the output from the old gcc 3.0
gcc -S Hello.c and then use that output to try to test the newer binutils a= s and
ld using the old libgcc and libc from the 3.0 port.

Could you send the Hello.S you got from gcc 3.0?

If the new binutils is working to make a functional i386-plan9 executable, = I
should focus on trying to make the new gcc compile and then test that one t= oo in
the same way as cross compiler using the old libc and new binutils, and the= n
compile a new libc using the new gcc.

I ended up in the mess of the as because I wanted to do an intermediate tes= t of
the binutils before moving on to gcc...

On Fri, Jun 19, 2020 at 10:16:35AM +0100, Conor Williams wrote:
> where to next Jens or are you ok again?...
>
> On Wed, Jun 17, 2020 at 4:45 PM Conor Williams <conor.williams@gmail.com>=
> wrote:
>
> > yes, the 3.0 port...
> >
> >
> >
> > On Wed, Jun 17, 2020 at 1:17 PM Jens Staal <staal1978@gmail.com> wrote: > >
> >> Great
> >>
> >> This was with the old 3.0 port?
> >>
> >> On Wed, Jun 17, 2020 at 10:25:46AM +0100, Conor Williams wrot= e:
> >> > wahoo i got it compiled in stages...
> >> >
> >> > i386...gcc -S hello.c
> >> > i386...as=C2=A0 -o hello.o hello.S
> >> > i386....ld crt0.o hello.o -L. -lgcc -lc -lgcc
> >> >
> >> > # ./a.out
> >> > Hello World!
> >> > #
> >> >
> >> >
> >> > On Wed, Jun 17, 2020 at 9:40 AM Conor Williams <
> >> conor.williams@gmail.com>
> >> > wrote:
> >> >
> >> > > ok, kewl...
> >> > >
> >> > > it turns out that as creates an intermediate object= file which
> >> happens to
> >> > > be, i feel, incorrectly
> >> > > called a.out...
> >> > >
> >> > > im not quite there but you send this file to 'i= 386-lucent-plan9-ld'
> >> and
> >> > > link them all
> >> > >
> >> > > something like this:
> >> > >
> >> > > i386-lucent-plan9-ld -o print3 libgcc.a libc.a prin= t3.o
> >> > >
> >> > > (where print3.o is the output from i386-lucent-plan= 9-ld)
> >> > > (i got the i386-lucent-plan9-gcc from
> >> > > https://9p.io/sources/extra/gcc/gn= ubin.tgz)
> >> > >
> >> > > On Wed, Jun 17, 2020 at 9:26 AM Jens Staal <staal1978@gmail.com>
> >> wrote:
> >> > >
> >> > >> The reason I tested as on and asm file was beca= use I have managed to
> >> build
> >> > >> binutils with i386-plan9 target, but not gcc ye= t.
> >> > >>
> >> > >> On Wed, Jun 17, 2020 at 09:09:46AM +0100, Conor= Williams wrote:
> >> > >> > i got gcc to create an a.out and it is 18k= in size so i think
> >> > >> > 'i386-lucent-plan9-as'
> >> > >> > should be passed command line params to ge= t it to load some
> >> external
> >> > >> libs
> >> > >> > etc...
> >> > >> >
> >> > >> > attached is asm generated by plan9 gcc on = plan 9 using the same
> >> gcc that
> >> > >> > created a proper a.out
> >> > >> >
> >> > >> > a quick question - why are you 'as'= ; to do this and not gcc?...
> >> > >> >
> >> > >> > On Wed, Jun 17, 2020 at 8:03 AM Conor Will= iams <
> >> > >>
conor.williams@gmail.com>
> >> > >> > wrote:
> >> > >> >
> >> > >> > > do a gcc -S hello.c
> >> > >> > > with a printf("helo world")= ; in it...
> >> > >> > >
> >> > >> > > On Wed, Jun 17, 2020 at 4:27 AM Jens = Staal <staal197= 8@gmail.com>
> >> > >> wrote:
> >> > >> > >
> >> > >> > >> This is really weird. The only th= ing I can think of is that
> >> > >> something is
> >> > >> > >> wrong
> >> > >> > >> with the Hello.S example that I d= ownloaded from here:
> >> > >> > >> https:= //www.tldp.org/HOWTO/Assembly-HOWTO/hello.html
> >> > >> > >>
> >> > >> > >> basically the same here:
> >> > >> > >> https://en.wiki= pedia.org/wiki/GNU_Assembler
> >> > >> > >>
> >> > >> > >> but I now noticed something: I th= ink the 0x80 is a 32 bit
> >> > >> Linux-specific
> >> > >> > >> thing so the
> >> > >> > >> code is perhaps non-portable....<= br> > >> > >> > >>
> >> > >> > >> I have now tested as from the old= binutils 2.22 and 2.11 that
> >> were
> >> > >> native
> >> > >> > >> on
> >> > >> > >> Plan9. I know for a fact that the= y should work but both also
> >> gave
> >> > >> the same
> >> > >> > >> error, so most likely the example= asm file that I have been
> >> trying
> >> > >> is not
> >> > >> > >> appropriate.
> >> > >> > >>
> >> > >> > >> No idea what the i386-plan9 varia= nt of 0x80 would be.
> >> > >> > >>
> >> > >> > >> Grrr!
> >> > >> > >>
> >> > >> > >> On Tue, Jun 16, 2020 at 11:24:08P= M +0100, Conor Williams wrote:
> >> > >> > >> > i386-as-plan9 -march i386 He= llo.S
> >> > >> > >> >
> >> > >> > >> > doesnt create an i386 binary= my friend...
> >> > >> > >> >
> >> > >> > >> > On Tue, Jun 16, 2020 at 11:0= 9 PM Conor Williams <
> >> > >> > >> conor.williams@gmail.com>
> >> > >> > >> > wrote:
> >> > >> > >> >
> >> > >> > >> > > it turns out that, that= a.out is a 68020 binary
> >> > >> > >> > >
> >> > >> > >> > > On Tue, Jun 16, 2020 at= 10:03 PM Conor Williams <
> >> > >> > >> conor.williams@gmail.com>
> >> > >> > >> > > wrote:
> >> > >> > >> > >
> >> > >> > >> > >> ok... i agree... > >> > >> > >> > >>
> >> > >> > >> > >> On Tue, Jun 16, 202= 0 at 8:02 PM Jens Staal <
> >> staa= l1978@gmail.com
> >> > >> >
> >> > >> > >> wrote:
> >> > >> > >> > >>
> >> > >> > >> > >>> ok that is weir= d. I got the same error with the
> >> > >> > >> i386-lucent-plan9-as on
> >> > >> > >> > >>> Plan9
> >> > >> > >> > >>> (a.out attached= )
> >> > >> > >> > >>>
> >> > >> > >> > >>> I only copied t= he as so there is no strip involved.
> >> > >> > >> > >>>
> >> > >> > >> > >>>
> >> > >> > >> > >>> On Tue, Jun 16,= 2020 at 06:12:08PM +0100, Conor Williams
> >> wrote:
> >> > >> > >> > >>> > one thing = before i delve into a linux vdi - that a.out
> >> is
> >> > >> > >> stripped,
> >> > >> > >> > >>> can you
> >> > >> > >> > >>> > send me th= e non-stripped version...
> >> > >> > >> > >>> >
> >> > >> > >> > >>> > On Tue, Ju= n 16, 2020 at 6:04 PM Conor Williams <
> >> > >> > >> > >>> conor.williams@gmail.com= >
> >> > >> > >> > >>> > wrote:
> >> > >> > >> > >>> >
> >> > >> > >> > >>> > > right= ...
> >> > >> > >> > >>> > >
> >> > >> > >> > >>> > > On Tu= e, Jun 16, 2020 at 5:56 PM Jens Staal <
> >> > >> staal1978@gmail.com
> >> > >> > >> >
> >> > >> > >> > >>> wrote:
> >> > >> > >> > >>> > >
> >> > >> > >> > >>> > >> y= es that is plan9 asm from the i386 compiler 8c.
> >> > >> > >> > >>> > >> > >> > >> > >> > >>> > >> U= nfortunately, there are different asm dialects and
> >> gcc
> >> > >> uses
> >> > >> > >> gas. It
> >> > >> > >> > >>> > >> w= ould otherwise have been awesome if one could just
> >> > >> replace 8c
> >> > >> > >> with
> >> > >> > >> > >>> gcc and
> >> > >> > >> > >>> > >> u= se the regular native stuff under it.
> >> > >> > >> > >>> > >> > >> > >> > >> > >>> > >> D= en tis 16 juni 2020 18:23Conor Williams <
> >> > >> > >> conor.williams@gmail.com>
> >> > >> > >> > >>> > >> s= krev:
> >> > >> > >> > >>> > >> > >> > >> > >> > >>> > >>&g= t; let me know what you think of the attached
> >> picture...
> >> > >> > >> > >>> > >>&g= t;
> >> > >> > >> > >>> > >>&g= t; On Tue, Jun 16, 2020 at 3:37 PM Conor Williams <
> >> > >> > >> > >>> conor.williams@gmail.com= >
> >> > >> > >> > >>> > >>&g= t; wrote:
> >> > >> > >> > >>> > >>&g= t;
> >> > >> > >> > >>> > >>&g= t;> ok...
> >> > >> > >> > >>> > >>&g= t;>
> >> > >> > >> > >>> > >>&g= t;> i setup an anonymous ftp server on my windows box
> >> to
> >> > >> transfer
> >> > >> > >> > >>> files...
> >> > >> > >> > >>> > >>&g= t;> (the new version of VirtualBox does
> >> > >> > >> > >>> > >>&g= t;> not easily support file sharing)
> >> > >> > >> > >>> > >>&g= t;>
> >> > >> > >> > >>> > >>&g= t;>
> >> > >> > >> > >>> > >>&g= t;>
> >> > >> > >> > >>> > >>&g= t;> On Tue, Jun 16, 2020 at 3:23 PM Jens Staal <
> >> > >> > >> staal1978@gmail.com>
> >> > >> > >> > >>> wrote:
> >> > >> > >> > >>> > >>&g= t;>
> >> > >> > >> > >>> > >>&g= t;>> I noticed that the "gnubin" tarball linked on
> >> > >> > >> > >>> > >>&g= t;>> https://marcus.biz.tm/jail/ is on
> >> > >> > >> > >>> > >>&g= t;>> google drive so it is not as slow download as
> >> > >> everything
> >> > >> > >> else
> >> > >> > >> > >>> from
> >> > >> > >> > >>> > >>&g= t;>> that site.
> >> > >> > >> > >>> > >>&g= t;>>
> >> > >> > >> > >>> > >>&g= t;>>
> >> > >> > >> https://drive.google.com/open?id=3D0B6YNt0aHfaA0TkREcmdQdWVhY0E > >> > >> > >> > >>> > >>&g= t;>>
> >> > >> > >> > >>> > >>&g= t;>> He has packaged it a bit strange as /usr/pkg/
> >> which
> >> > >> does not
> >> > >> > >> > >>> make sense
> >> > >> > >> > >>> > >>&g= t;>> considering the plan9 directory structure, but
> >> perhaps
> >> > >> one
> >> > >> > >> can
> >> > >> > >> > >>> test
> >> > >> > >> > >>> > >>&g= t;>> the output
> >> > >> > >> > >>> > >>&g= t;>> from that "as" too when run under Plan9.
> >> > >> > >> > >>> > >>&g= t;>>
> >> > >> > >> > >>> > >>&g= t;>> I have an issue moving stuff between my plan9
> >> systems
> >> > >> and my
> >> > >> > >> > >>> Linux
> >> > >> > >> > >>> > >>&g= t;>> system at the
> >> > >> > >> > >>> > >>&g= t;>> moment (dual booting 9front, put stuff I want to
> >> move
> >> > >> > >> between the
> >> > >> > >> > >>> > >>&g= t;>> systems in the
> >> > >> > >> > >>> > >>&g= t;>> ESP partition =3D limited space, run 9front in
> >> > >> Virtualbox, no
> >> > >> > >> idea
> >> > >> > >> > >>> how
> >> > >> > >> > >>> > >>&g= t;>> to share files between my
> >> > >> > >> > >>> > >>&g= t;>> Linux host and the VM).
> >> > >> > >> > >>> > >>&g= t;>>
> >> > >> > >> > >>> > >>&g= t;>> On Tue, Jun 16, 2020 at 03:02:40PM +0100, Conor
> >> > >> Williams
> >> > >> > >> wrote:
> >> > >> > >> > >>> > >>&g= t;>> > ok, thanks Jens, im going to run a hex editor,
> >> 'od',
> >> > >> on
> >> > >> > >> a.out
> >> > >> > >> > >>> and
> >> > >> > >> > >>> > >>&g= t;>> have a
> >> > >> > >> > >>> > >>&g= t;>> > look as im getting:
> >> > >> > >> > >>> > >>&g= t;>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "exec: header invali= d"
> >> > >> > >> > >>> > >>&g= t;>> > also.
> >> > >> > >> > >>> > >>&g= t;>> >
> >> > >> > >> > >>> > >>&g= t;>> > On Tue, Jun 16, 2020 at 10:49 AM Jens Staal <
> >> > >> > >> > >>> staal1978@gmail.com>
> >> > >> > >> > >>> > >>&g= t;>> wrote:
> >> > >> > >> > >>> > >>&g= t;>> >
> >> > >> > >> > >>> > >>&g= t;>> > > this is what I get when I do
> >> i386-lucent-plan9-as
> >> > >> with
> >> > >> > >> my new
> >> > >> > >> > >>> > >>&g= t;>> binutils on
> >> > >> > >> > >>> > >>&g= t;>> > > Hello.S.
> >> > >> > >> > >>> > >>&g= t;>> > >
> >> > >> > >> > >>> > >>&g= t;>> > > I have not tried the old gcc/binutils ports
> >> > >> running on
> >> > >> > >> Plan9
> >> > >> > >> > >>> on
> >> > >> > >> > >>> > >>&g= t;>> this asm
> >> > >> > >> > >>> > >>&g= t;>> > > file.
> >> > >> > >> > >>> > >>&g= t;>> > >
> >> > >> > >> > >>> > >>&g= t;>> > > On Tue, Jun 16, 2020 at 09:54:07AM +0100,
> >> Conor
> >> > >> Williams
> >> > >> > >> > >>> wrote:
> >> > >> > >> > >>> > >>&g= t;>> > > > ok, cool cool... and you translate this
> >> assembler
> >> > >> > >> file to
> >> > >> > >> > >>> binary
> >> > >> > >> > >>> > >>&g= t;>> on Plan
> >> > >> > >> > >>> > >>&g= t;>> > > 9,
> >> > >> > >> > >>> > >>&g= t;>> > > > how?...
> >> > >> > >> > >>> > >>&g= t;>> > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > does the cross compiler not create a
> >> binary?...
> >> > >> could
> >> > >> > >> you
> >> > >> > >> > >>> send
> >> > >> > >> > >>> > >>&g= t;>> me that
> >> > >> > >> > >>> > >>&g= t;>> > > > too?...
> >> > >> > >> > >>> > >>&g= t;>> > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > Kind Regards
> >> > >> > >> > >>> > >>&g= t;>> > > > Conor
> >> > >> > >> > >>> > >>&g= t;>> > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > On Tue, Jun 16, 2020 at 4:45 AM Jens Staal < > >> > >> > >> > >>> staal1978@gmail.com>
> >> > >> > >> > >>> > >>&g= t;>> wrote:
> >> > >> > >> > >>> > >>&g= t;>> > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > Hi Conor
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > I am currently focusing on getting the
> >> modern
> >> > >> gcc
> >> > >> > >> and
> >> > >> > >> > >>> binutils
> >> > >> > >> > >>> > >>&g= t;>> to work
> >> > >> > >> > >>> > >>&g= t;>> > > as
> >> > >> > >> > >>> > >>&g= t;>> > > > > cross
> >> > >> > >> > >>> > >>&g= t;>> > > > > compilers, so I build on Linux at the
> >> moment.
> >> > >> As
> >> > >> > >> can be
> >> > >> > >> > >>> seen
> >> > >> > >> > >>> > >>&g= t;>> on the
> >> > >> > >> > >>> > >>&g= t;>> > > > > comparison
> >> > >> > >> > >>> > >>&g= t;>> > > > > below:
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> https://github.com/staalm= annen/gcc/pull/3/files
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> > >> ht= tps://github.com/staalmannen/binutils-gdb/pull/3/files
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > there are several other changes needed to > >> > >> build on
> >> > >> > >> Plan9
> >> > >> > >> > >>> > >>&g= t;>> related to
> >> > >> > >> > >>> > >>&g= t;>> > > missing
> >> > >> > >> > >>> > >>&g= t;>> > > > > flags in the APE utilities (mv -f, ls
> >> -di). I
> >> > >> think
> >> > >> > >> the
> >> > >> > >> > >>> > >>&g= t;>> cleaner way to
> >> > >> > >> > >>> > >>&g= t;>> > > > > deal with
> >> > >> > >> > >>> > >>&g= t;>> > > > > those would be to make some rc script
> >> wrappers
> >> > >> that
> >> > >> > >> > >>> catches
> >> > >> > >> > >>> > >>&g= t;>> those
> >> > >> > >> > >>> > >>&g= t;>> > > flags and
> >> > >> > >> > >>> > >>&g= t;>> > > > > change them to something reasonable (mv,
> >> ls -d)
> >> > >> > >> rather
> >> > >> > >> > >>> than
> >> > >> > >> > >>> > >>&g= t;>> changing
> >> > >> > >> > >>> > >>&g= t;>> > > the
> >> > >> > >> > >>> > >>&g= t;>> > > > > source
> >> > >> > >> > >>> > >>&g= t;>> > > > > code of gcc in a way that would interfere > >> with
> >> > >> > >> building
> >> > >> > >> > >>> it on
> >> > >> > >> > >>> > >>&g= t;>> other
> >> > >> > >> > >>> > >>&g= t;>> > > hosts.
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > There are i386-Plan9 gcc/binutils + APE
> >> library
> >> > >> > >> binaries
> >> > >> > >> > >>> for
> >> > >> > >> > >>> > >>&g= t;>> > > > > 3.0
> >> > >> > >> > >>> > >>&g= t;>> > > > > https://9p.io/sources/extra/gcc/<= br> > >> > >> > >> > >>> > >>&g= t;>> > > > > and 4.8.3
> >> > >> > >> > >>> > >>&g= t;>> > > > > https://marcus.biz.tm/jail/
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > Perhaps the 4.8.3 variant will be able to > >> > >> build gcc
> >> > >> > >> 10 /
> >> > >> > >> > >>> > >>&g= t;>> binutils 2.34
> >> > >> > >> > >>> > >>&g= t;>> > > > > natively
> >> > >> > >> > >>> > >>&g= t;>> > > > > on Plan9, but my bet is on a cross
> >> compiler
> >> > >> first,
> >> > >> > >> which
> >> > >> > >> > >>> then
> >> > >> > >> > >>> > >>&g= t;>> can be
> >> > >> > >> > >>> > >>&g= t;>> > > used
> >> > >> > >> > >>> > >>&g= t;>> > > > > to
> >> > >> > >> > >>> > >>&g= t;>> > > > > cross compile gcc/binutils to Plan9 for
> >> gcc as
> >> > >> > >> native
> >> > >> > >> > >>> compiler.
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > I will set up a repo for the APE
> >> libraries for
> >> > >> gcc,
> >> > >> > >> but
> >> > >> > >> > >>> of
> >> > >> > >> > >>> > >>&g= t;>> course we
> >> > >> > >> > >>> > >>&g= t;>> > > first
> >> > >> > >> > >>> > >>&g= t;>> > > > > need
> >> > >> > >> > >>> > >>&g= t;>> > > > > to get binutils and gcc working before we > >> can
> >> > >> try to
> >> > >> > >> > >>> compile
> >> > >> > >> > >>> > >>&g= t;>> anything,
> >> > >> > >> > >>> > >>&g= t;>> > > > > including
> >> > >> > >> > >>> > >>&g= t;>> > > > > the c library...
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > Attached is the Hello.S I used for testing > >> > >> (copied
> >> > >> > >> from
> >> > >> > >> > >>> > >>&g= t;>> Internet)
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > On Mon, Jun 15, 2020 at 08:02:21PM +0100, > >> Conor
> >> > >> > >> Williams
> >> > >> > >> > >>> wrote:
> >> > >> > >> > >>> > >>&g= t;>> > > > > > hello Jens
> >> > >> > >> > >>> > >>&g= t;>> > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > I have my Plan 9 virtual machine up and=
> >> > >> running...
> >> > >> > >> > >>> > >>&g= t;>> > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > to start me off, can you send me the > >> "Hello.
> >> > >> S"
> >> > >> > >> binary
> >> > >> > >> > >>> > >>&g= t;>> > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > also, to clarify, you are running the > >> > >> compiler on
> >> > >> > >> a
> >> > >> > >> > >>> *Linux*
> >> > >> > >> > >>> > >>&g= t;>> box
> >> > >> > >> > >>> > >>&g= t;>> > > creating
> >> > >> > >> > >>> > >>&g= t;>> > > > > > the binary for Plan 9?
> >> > >> > >> > >>> > >>&g= t;>> > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > Regards
> >> > >> > >> > >>> > >>&g= t;>> > > > > > Conor (Williams)
> >> > >> > >> > >>> > >>&g= t;>> > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > Regards
> >> > >> > >> > >>> > >>&g= t;>> > > > > > Conor
> >> > >> > >> > >>> > >>&g= t;>> > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > On Tue, Jun 9, 2020 at 9:03 PM Jens
> >> Staal <
> >> > >> > >> > >>> > >>&g= t;>> staal19= 78@gmail.com>
> >> > >> > >> > >>> > >>&g= t;>> > > wrote:
> >> > >> > >> > >>> > >>&g= t;>> > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > I have now added 2 more branches f= or
> >> > >> reference
> >> > >> > >> from
> >> > >> > >> > >>> the
> >> > >> > >> > >>> > >>&g= t;>> updated
> >> > >> > >> > >>> > >>&g= t;>> > > port of
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > gcc and
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > binutils to i386-plan9 from
> >> > >> > >> > >>> https://marcu= s.biz.tm/jail/ :
> >> > >> > >> > >>> > >>&g= t;>> > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > binutils-2_22-plan9
> >> > >> > >> > >>> > >>&g= t;>> > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > gcc-4.8-plan9
> >> > >> > >> > >>> > >>&g= t;>> > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > Hopefully there are some clues the= re
> >> to
> >> > >> help
> >> > >> > >> making a
> >> > >> > >> > >>> > >>&g= t;>> working
> >> > >> > >> > >>> > >>&g= t;>> > > current
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > i386-plan9 cross
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > compiler.
> >> > >> > >> > >>> > >>&g= t;>> > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > On Tue, Jun 02, 2020 at 02:36:38PM=
> >> +0200,
> >> > >> Jens
> >> > >> > >> Staal
> >> > >> > >> > >>> wrote:
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > Dear all,
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > First a bit of background: > >> > >> > >> > >>> > >>&g= t;>> > > > > > > > I am currently attempting to = update
> >> the
> >> > >> old
> >> > >> > >> > >>> i386-plan9
> >> > >> > >> > >>> > >>&g= t;>> target for
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > binutils/gcc
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > in order to generate a modern= cross
> >> > >> compiler
> >> > >> > >> > >>> targeting
> >> > >> > >> > >>> > >>&g= t;>> plan9.
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > I have extracted the changes = done
> >> to gcc
> >> > >> 3.0
> >> > >> > >> and
> >> > >> > >> > >>> > >>&g= t;>> binutils 2.11.2
> >> > >> > >> > >>> > >>&g= t;>> > > > > from:
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > https://9p.io/sources/= extra/gcc/
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > My binutils and gcc attempts = can be
> >> > >> found at:
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > https://github.com/s= taalmannen/gcc
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > branch plan9 : porting attemp= t to
> >> > >> current gcc
> >> > >> > >> (10)
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > branch gcc-3.0-plan9 : origin= al port
> >> > >> added to
> >> > >> > >> the
> >> > >> > >> > >>> 3.0
> >> > >> > >> > >>> > >>&g= t;>> branch
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > >
> >> > >> https://github.com/staalmanne= n/binutils-gdb
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > branch plan9: porting attempt= to
> >> current
> >> > >> > >> binutils
> >> > >> > >> > >>> (2.34)
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > branch binutils-2_11-plan9 :<= br> > >> original
> >> > >> port
> >> > >> > >> added
> >> > >> > >> > >>> to the
> >> > >> > >> > >>> > >>&g= t;>> 2.11
> >> > >> > >> > >>> > >>&g= t;>> > > branch
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > Definitely not just a copy-an= d-paste
> >> > >> endeavour
> >> > >> > >> > >>> > >>&g= t;>> unfortunately.
> >> > >> > >> > >>> > >>&g= t;>> > > The old
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > port
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > almost 20 years old and some = style
> >> and
> >> > >> > >> structure
> >> > >> > >> > >>> changes
> >> > >> > >> > >>> > >>&g= t;>> have
> >> > >> > >> > >>> > >>&g= t;>> > > > > happened
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > in that
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > time.
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > I have built a binutils varia= nt but
> >> when
> >> > >> I
> >> > >> > >> try to
> >> > >> > >> > >>> > >>&g= t;>> compile a
> >> > >> > >> > >>> > >>&g= t;>> > > "Hello.S"
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > with
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > i386-lucent-plan9-as and exec= ute it
> >> > >> under i386
> >> > >> > >> > >>> 9front, I
> >> > >> > >> > >>> > >>&g= t;>> get an
> >> > >> > >> > >>> > >>&g= t;>> > > error
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > about
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > incorrect file header, so som= ething
> >> is
> >> > >> wrong.
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > What I learned from looking a= t the
> >> old
> >> > >> port
> >> > >> > >> and
> >> > >> > >> > >>> trying
> >> > >> > >> > >>> > >>&g= t;>> to adapt
> >> > >> > >> > >>> > >>&g= t;>> > > it to
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > compile in
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > a modern binutils background = is
> >> that a
> >> > >> lot of
> >> > >> > >> it is
> >> > >> > >> > >>> > >>&g= t;>> basically
> >> > >> > >> > >>> > >>&g= t;>> > > copied
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > from the
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > generic aout target (I have s= ome
> >> > >> uncommitted
> >> > >> > >> > >>> changes
> >> > >> > >> > >>> > >>&g= t;>> where I am
> >> > >> > >> > >>> > >>&g= t;>> > > > > updating
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > the
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > obj-plan9 files to modern mod= ified
> >> > >> obj-aout
> >> > >> > >> files
> >> > >> > >> > >>> with
> >> > >> > >> > >>> > >>&g= t;>> the
> >> > >> > >> > >>> > >>&g= t;>> > > original
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > changes
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > applied).
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > So to my question: what are t= he
> >> > >> differences
> >> > >> > >> > >>> between the
> >> > >> > >> > >>> > >>&g= t;>> plan9
> >> > >> > >> > >>> > >>&g= t;>> > > file
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > format and
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > >=C2=A0 what binutils would see= as generic
> >> aout?
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > > PS. If someone would be inter= ested
> >> to
> >> > >> help
> >> > >> > >> out,
> >> > >> > >> > >>> you are
> >> > >> > >> > >>> > >>&g= t;>> more than
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > welcome ;) DS.
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > > > >
> >> ------------------------------------------
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > 9fans: 9fans
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > Permalink:
> >> > >> > >> > >>> > >>&g= t;>> > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> > >> > >>> > >>&g= t;>> > >
> >> > >> > >> > >>> > >>&g= t;>>
> >> > >> > >> > >>>
> >> > >> > >>
> >> > >>
> >> htt= ps://9fans.topicbox.com/groups/9fans/T0d486ca41e37210d-M8f436975b50638e15cf= 50fdd
> >> > >> > >> > >>> > >>&g= t;>> > > > > > > Delivery options:
> >> > >> > >> > >>> > >>&g= t;>> > >
> >> > >> https://9fans.topicb= ox.com/groups/9fans/subscription
> >> > >> > >> > >>> > >>&g= t;>> > > > > > >
> >> > >> > >> > >>> > >>&g= t;>> > > > >
> >> > >> > >> > >>> > >>&g= t;>> > >
> >> > >> > >> > >>> > >>&g= t;>>
> >> > >> > >> > >>> > >>&g= t;>
> >> > >> > >> > >>>
> >> > >> > >> > >>
> >> > >> > >>
> >> > >> > >
> >> > >>
> >> > >>
> >> > >>
> >>
> >
--00000000000095d6f305a871e269--