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 4997 invoked from network); 11 Jul 2022 20:32:28 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 11 Jul 2022 20:32:28 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 73F844094C; Tue, 12 Jul 2022 06:32:07 +1000 (AEST) Received: from mail-vk1-f180.google.com (mail-vk1-f180.google.com [209.85.221.180]) by minnie.tuhs.org (Postfix) with ESMTPS id A7D8D4093A for ; Tue, 12 Jul 2022 06:32:00 +1000 (AEST) Received: by mail-vk1-f180.google.com with SMTP id u204so2911663vkb.7 for ; Mon, 11 Jul 2022 13:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=32j0cb/eFAY9rYfWgiYrDHUauaq/UA7G3jjjEt4aEmw=; b=mVdo+kO6rkEdU8+qleYavP5nLe2EKlkLHBRqJAfGsDEEf/WSNH/krq5U8KyHIDDfkV ZkHp7IbU6QIC0GhhYMvmzJDJ5NDhGre/mSmcRHimPNrGeYeP3VLlzFzotdyXrK78dcYe poX/1rVguCOl1C/yGdAhBiTVi5RWcZJmFm72grgBTnFVi4+/fXrEFqiTNWnrvpLxRztS YGgzKcMh4ZynM/7Kx5ZN3hnqYyHl339bMkrCqKN3HbdlujJMHHO2HIQr6jIjvP6Zp0xU tPvUAeyR3n/J6dJnWashu6Xu1ytqgLIUe0s0ypHlkcMAfTQZqqV5+64kuqVr7hc1uXot SNhw== 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=32j0cb/eFAY9rYfWgiYrDHUauaq/UA7G3jjjEt4aEmw=; b=b4TLqijDcDkkSf+mk8MMNEUzr0ibWMNBxAWLWOJ52M/TqQkgDhIns9AHJlkCBzDwpp NF1alNAQ/kgOksUIA7C9B3Kql6lj1l8+eIWPtNUFRTKYJNDi7U60wgtzVWbfmxUKvM+E 6c4DZpmqGkqdN05yb9hZrcmRGuzFJ76oBmFZt13s1BnV9YHUyguMBoZyRf5IQYl2SUwB Mt+dw3RcWJ7LiMhVnbRiKWQwQrLM3KmTTGr6L9F5mqxqjtfrNnRb5jtgg0iFtOGUYv93 z7a6VOorFz4JFJ8WzWVEFBCWNgPtebio7Oj4qZ8n2E6szb+ytYq90N6qNsWlKBQC4yAE XK+A== X-Gm-Message-State: AJIora8117GzDVdG/hzMfLc7M1YcN3VyFEAFcAHn93hilVSnwBoMRnC3 0uHF4OlS6q2qPTTPJ7lRRWscduyDzAYPORQJuKgOjQ== X-Google-Smtp-Source: AGRyM1uRfMClJEvM9iQdJsPhKdye1sulInTGWPBo8uHiopabJ8GcogIG8gOFWkXgJOqDY+oq8jVp6D9BwnkDMZyX+Yw= X-Received: by 2002:a1f:b451:0:b0:374:1253:af96 with SMTP id d78-20020a1fb451000000b003741253af96mr7048548vkf.21.1657571458932; Mon, 11 Jul 2022 13:30:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Mon, 11 Jul 2022 14:30:48 -0600 Message-ID: To: Clem Cole Content-Type: multipart/alternative; boundary="000000000000fff68705e38d6d99" Message-ID-Hash: YFT6TKHW35LWLHIZITZQNPHBC3FGIG3E X-Message-ID-Hash: YFT6TKHW35LWLHIZITZQNPHBC3FGIG3E X-MailFrom: wlosh@bsdimp.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: --000000000000fff68705e38d6d99 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jul 11, 2022 at 2:27 PM Clem Cole wrote: > @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 fi= le > is probably not going to get what you want. > Oh right, _etext, _edata and _end are supposed to be linker creatures (created by the linker), but I can't recall when the linker started doing that... > >> _decmch is likely in m.s so maybe that's not included. Iirc it should b= e >> 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. > That's the area I'd try first... But I'd expect both data and bss symbols to be scattered in many of the other files though... It may be something as simple as an empty .o file from those compiler runs that failed... > @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 ba= ck > 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. > 2.11BSD, but who's counting :) Warner > =E1=90=A7 > --000000000000fff68705e38d6d99 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Jul 11, 2022 at 2:27 PM Clem = Cole <clemc@ccc.com> wrote:
<= /div>

On Mon, Jul 11, 2022 at 4:03 PM Warner Losh <= imp@bsdimp.com> = 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. Tho= ugh crt is supposed to have that.=C2=A0
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.

Oh right= , _etext, _edata and _end are supposed to be linker creatures (created by t= he linker), but I can't recall when the linker started doing that...
=C2=A0

_decmch is likely in m.s so maybe that's not= included.=C2=A0 Iirc it should be next to last...
My bet is this key to the whole iss= ue he is having.=C2=A0 If Gavin can figures out what gives WRT _decmch, I b= et it links.=C2=A0

That's the area I'd try first... But I'd expect both da= ta and bss symbols to be scattered in many of the other files though... It = may be something as simple as an empty .o file from those compiler runs tha= t failed...
=C2=A0
@Gavin Tersteeg -- I would t= rust 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 = memory have decayed over the years. Suggestion, take a quick peek in the so= urces to ld.c=C2=A0 and look for it hard coding the check for those three s= ymbols.=C2=A0 They will look up as undefined originally, then latter get se= t to values only if there are no other UNDEFINED symbols.

=C2=A02.11BSD, but who's counti= ng :)

Warner
3D""=E1=90=A7
--000000000000fff68705e38d6d99--