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=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28137 invoked from network); 7 Aug 2020 20:49:06 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 7 Aug 2020 20:49:06 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 8CD009CAA4; Sat, 8 Aug 2020 06:49:01 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 8B91F9C1CE; Sat, 8 Aug 2020 06:48:32 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=bsdimp-com.20150623.gappssmtp.com header.i=@bsdimp-com.20150623.gappssmtp.com header.b="tKQTphsJ"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 1945D9C1CE; Sat, 8 Aug 2020 06:48:29 +1000 (AEST) Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) by minnie.tuhs.org (Postfix) with ESMTPS id 49AB09C1C7 for ; Sat, 8 Aug 2020 06:48:28 +1000 (AEST) Received: by mail-qt1-f173.google.com with SMTP id w9so2314625qts.6 for ; Fri, 07 Aug 2020 13:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=b1YlxoFcSzB8seJwDJ9VX7P2mMJ/r5Llrso1oOC4rIY=; b=tKQTphsJq1y+Em2g1IsqbVQjMDQNQxHbZL3Adcr6TSx5auNIWzSlTmCuQil/lhMCGZ bDZ3FgqIiWEssq1sxdiOy0ULZ+C6w7jvHLC83xJ0U2inPNubhEeFbIX6U6kvhlFiAyrt cILNmFCApdeA0vEfXtWk6OtDQu2NpVC8KzcwpY0FXSIgk11oYRAOzXdy3o/QOlSb53ex 4K1b9IPogejnU/C71gavRAC8XLDdCE0/MtVMiaJG6ygWfqFoy5EnNzqJMocyfSTGNai1 HNn98xgHeTPaxKPIs5+0AgF+tznUtOYjZv1wmj/BT02JSsE04WwEZwv3IcCrTOXSP9sJ Wexg== 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; bh=b1YlxoFcSzB8seJwDJ9VX7P2mMJ/r5Llrso1oOC4rIY=; b=dY2YaYPW1wscbQKFFrCWSRvlQ3gza2KPogiebBey6cuooc8BUbBSt+j5/kJqXk1xON uabbEY3GNkshhS3lsqKzhpozDddQSEjIoxKPOuvmKJHJWHiPFGyp80VGlbHuq+pUUrZQ Aj/8cMyoCSaMfFnPLWSVhl6TXflUwITuNyGd+kVrC8l6Q9nUCEFNmIUv2BElYnisacps w9wafGY9O7uRwuQQSWgBpIqvyrUz+IGX+fibKHXmFLTHQ+vMK1xH125MD93+7fgeOzU7 g+nZ+ncM7EZC8mU1PhR7IbS7qVnlV6bTtp4y53zDCRrSqREc0MA8IbN9S/Vb4UVAsBVU GPzQ== X-Gm-Message-State: AOAM533r+URmqaXX/xlpYxkaO+wJ6OwR1HRO9iUPYHPVwW6pipqPar9p Le5OJUxP9QfJftMJB8GQnD31kR3tfHmtunYfkRHRF0yWwGY= X-Google-Smtp-Source: ABdhPJxBiizCLW/fRnbOEyPSeEfE0qGMfn0owoNAka4d9+QKxZDS3Wal6y+XCub1cAoAXY13xb3qjjkQMBdOjl+jnXc= X-Received: by 2002:ac8:45c7:: with SMTP id e7mr9046460qto.187.1596833307209; Fri, 07 Aug 2020 13:48:27 -0700 (PDT) MIME-Version: 1.0 References: <20200807160723.5E16918C08B@mercury.lcs.mit.edu> In-Reply-To: <20200807160723.5E16918C08B@mercury.lcs.mit.edu> From: Warner Losh Date: Fri, 7 Aug 2020 14:48:16 -0600 Message-ID: To: Noel Chiappa Content-Type: multipart/alternative; boundary="0000000000000acac705ac4fbaf6" Subject: Re: [TUHS] Debugging help sought X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --0000000000000acac705ac4fbaf6 Content-Type: text/plain; charset="UTF-8" On Fri, Aug 7, 2020 at 10:08 AM Noel Chiappa wrote: > > From: Warner Losh > > The error comes from lookloc. This is called for external type > > relocations. It searches the local symbol table for something that > > matches the relocation entry. This error happens when it can't find > > it... > > Someone who actually looked at the source: > > https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/ld.c > > instead of just guessing. Give that man a star! > I've spent some time in ld.c lately: https://github.com/bsdimp/mk211bsd/blob/master/hints/160.ld.diff since I had to retro-fit the new archive support into the 2.10.1BSD + patches posted to comp.bugs.2bsd version of ld I needed for 2.11BSDpl0 :) Ideally, nobody would be able to tell my retrofits from the usenet patch that's also in this diff... Warner --0000000000000acac705ac4fbaf6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Fri, Aug 7, 2020 at 10:08 AM Noel = Chiappa <jnc@mercury.lcs.mit.= edu> wrote:
=C2=A0 =C2=A0 > From: Warner Losh
=C2=A0 =C2=A0 > The error comes from lookloc. This is called for externa= l type
=C2=A0 =C2=A0 > relocations. It searches the local symbol table for some= thing that
=C2=A0 =C2=A0 > matches the relocation entry. This error happens when it= can't find
=C2=A0 =C2=A0 > it...

Someone who actually looked at the source:

=C2=A0 https://www.tuhs.org/cgi-bin/= utree.pl?file=3DV7/usr/src/cmd/ld.c

instead of just guessing. Give that man a star!

I've spent some time in ld.c lately:
since I h= ad to retro-fit the new archive support into the 2.10.1BSD=C2=A0+ patches p= osted to comp.bugs.2bsd version of ld I needed for 2.11BSDpl0 :)=C2=A0 Idea= lly, nobody would be able to tell my retrofits from the usenet patch that&#= 39;s also in this diff...

Warner=C2=A0
=
--0000000000000acac705ac4fbaf6--