From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_FONT_LOW_CONTRAST,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4453 invoked from network); 11 Jul 2022 20:28:35 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 11 Jul 2022 20:28:35 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 4A9B640122; Tue, 12 Jul 2022 06:28:30 +1000 (AEST) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by minnie.tuhs.org (Postfix) with ESMTPS id 0383C4010D for ; Tue, 12 Jul 2022 06:28:26 +1000 (AEST) Received: by mail-wm1-f51.google.com with SMTP id h14-20020a1ccc0e000000b0039eff745c53so3673702wmb.5 for ; Mon, 11 Jul 2022 13:28:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccc.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=paiHKvKEBXVXp9xqUGIRVAnQk8yq8ESchqSdBoUGPRk=; b=Bvn1+yD/y8LSoaJztWBbvotCYuF8pAQK/GT2iwzVjozocoQMGnlmm14DpbdYQdFE3q dygagJ5lmc7EAFFiEmNnZ/jqv+EcnLhpod/Pd8vTOFzarKHRw/ng3TArHHC4aNmP9f35 cMMzL5+JYXlBtPnz4RoTMjkn3boJMWjVzk4VE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=paiHKvKEBXVXp9xqUGIRVAnQk8yq8ESchqSdBoUGPRk=; b=wkufWZq+nrO6C43O2TyyMgsJQY2XG7Hy7N7eMXd3CdTNnYfkDVLn+40hPQpj6hYdYy +yh0KID8rXibYNsJ6jQoFRGHZdor09Bjs5RVKE6rEwhyo3czQadDzNW7VcVlqtbK4NIr axBpW/D2dMwNtVaP53nkbZj0Zam2siAspFBvt9B6JNjVPzHzKdb+x7OeJFnM1VwkSz9G wbFsZSO0QCUPfPqZCJ1siaGfAo1AwgsYn3LQVKZKtT9PggO/YAWBewta7u281TEjEKZT ZSnlHvuxSACYa0v1XewEUydHe5SQLLck9hG40lHDydnc5mddZ1j9m9FDDfPanDf0RxON qCvA== X-Gm-Message-State: AJIora/dXZeZWaIvy2juvAJ5Jo5EWpHHOU6V+y6MMSiTs8tfq2NcbCnH wOCWceLedPv5EDbNm+tc2K4cCbiFcYveTUolykyjrQ== X-Google-Smtp-Source: AGRyM1t2LE3X+TkdgVqf/0E8kYHjPE6RXNRwymRCYalUTjki0K5RpAaVi+3ghb1yVBsSlGpoUHoHDT1jUN7kXEClFA0= X-Received: by 2002:a1c:7405:0:b0:3a2:de4f:5f07 with SMTP id p5-20020a1c7405000000b003a2de4f5f07mr125241wmc.117.1657571244279; Mon, 11 Jul 2022 13:27:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Clem Cole Date: Mon, 11 Jul 2022 16:26:57 -0400 Message-ID: To: Warner Losh Content-Type: multipart/alternative; boundary="00000000000034be6b05e38d61a9" Message-ID-Hash: LBSOZ67CX3AKUMMVOBSAFEFK6Z46YJVO X-Message-ID-Hash: LBSOZ67CX3AKUMMVOBSAFEFK6Z46YJVO X-MailFrom: clemc@ccc.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Gavin Tersteeg , The Eunuchs Hysterical Society X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: LSX issues and musing List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --00000000000034be6b05e38d61a9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable @Warner Losh On Mon, Jul 11, 2022 at 4:03 PM Warner Losh wrote: > > _end is the end of the text segment. _edata same for the data. You can > create these two by just creating a file that defines them as symbols =3D= . > And global. And link that file last. Though crt is supposed to have that. > Hmmm -- I might have miss remembered this... but I'm pretty sure the way ld(1) worked is that it supplied _edata, _etext, and _end automagically by ld(1) IIF, there are no other undefined symbols. Adding them into a file is probably not going to get what you want. > > _decmch is likely in m.s so maybe that's not included. Iirc it should be > next to last... > My bet is this key to the whole issue he is having. If Gavin can figures out what gives WRT _decmch, I bet it links. @Gavin Tersteeg < gctersteeg@gmail.com> -- I would trust Warner's memory more than mine since he tries to keep 2.9BSD alive, but he knows I go back to V5 and the early/mid 70s; but bits in my memory have decayed over the years. Suggestion, take a quick peek in the sources to ld.c and look for it hard coding the check for those three symbols. They will look up as undefined originally, then latter get set to values only if there are no other UNDEFINED symbols. > =E1=90=A7 --00000000000034be6b05e38d61a9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


_end is the end of the text segment. _e= data same for the data. You can create these two by just creating a file th= at defines them as symbols =3D . And global. And link that file last. Thoug= h crt is supposed to have that.=C2=A0
<= span class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-seri= f">Hmmm -- I=C2=A0might have miss remembered this..= .=C2=A0 but I'm pretty sure= the way ld(1) worked is that it supplied _edata, _etext, and _e= nd=C2=A0automagically by ld(1) IIF, there are no other undefined= symbols. Adding them into a file is probably not going to get what you wan= t.

_decmch is likely in m.s so maybe that's not included.=C2=A0 = Iirc it should be next to last...
<= font color=3D"#0000ff">My bet is this key to the whole issue he is having.= =C2=A0 If Gavin can figures out what gives WRT _decmch, I bet it links.=C2= =A0

<= a href=3D"mailto: gctersteeg@gmail.com">@Gavin Tersteeg -- I would tru= st Warner's memory more than mine since he tries to keep 2.9BSD alive,= =C2=A0 but he knows I go back to V5 and the early/mid 70s; but bits in my m= emory have decayed over the years. Suggestion, take a quick peek in the sou= rces to ld.c=C2=A0 and look for it hard coding the check for those three sy= mbols.=C2=A0 They will look up as undefined originally, then latter get set= to values only if there are no other UNDEFINED symbols.
3D""=E1=90=A7
--00000000000034be6b05e38d61a9--