From nobody Tue Oct 04 17:52:26 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MhlfF6Bgnz4fLF8; Tue, 4 Oct 2022 17:52:37 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MhlfF0WDbz4H1r; Tue, 4 Oct 2022 17:52:37 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-pj1-f41.google.com with SMTP id o9-20020a17090a0a0900b0020ad4e758b3so3096146pjo.4; Tue, 04 Oct 2022 10:52:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=i1HoJpeCro2YUlthITOHlQjzzIMDR3ePrqWVTqAsIXE=; b=3cWQNlf6vIkZeFoRwmvLZcl3ctUeWPvfOq2TMqFQFtU6HrbIpkUMk64pkxpX4VD159 90ywT7lZhbMqYFM/fnfYVZmYyuEPVxH/LMwenTtgeypt8J6NzDrVeOk6MB2oYpSufr2R qkou82tqXjYLT3sLVuWkhfGfWZNeWNDKA29ww6mcm60Ie0Kxz2fksLImokuRMmkQ9lTc SIxjk9iNj3r7kpcqUIbzmFmdz/sPd9V7yRhksTFBI7PcyFjW3Gb8QD5HqQFuokrMjJuu ga3kemCNs8qNkK8Pw45+KTkhdQnS0RWnHPSr284iKb6j9TwhXkDuAKS8AXvE7xOMqBMK y32A== X-Gm-Message-State: ACrzQf0gHrnbwzFAv3Q+M59x8qRGkGU0l6kRDeWnR5IGDhA2IaezzNmE ADYXOumzMS0Et1GcS+t5zNLADth4wPCc5ue0APo/hG8+lDE= X-Google-Smtp-Source: AMsMyM5fU/uWfOy0OY+muuSRpo+AYO57BoDtf5AlTWEX+EqmDw7cDn/Fw6GmzpDNy+uLXblNYn5N3HCF9yzmnMTZ0V8= X-Received: by 2002:a17:902:eccf:b0:17f:74c1:f533 with SMTP id a15-20020a170902eccf00b0017f74c1f533mr3644047plh.20.1664905955427; Tue, 04 Oct 2022 10:52:35 -0700 (PDT) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 References: <202210032311.293NBKEd065568@gitrepo.freebsd.org> <1BB1F50E-C679-4570-8C7C-582B8C83CAD6@panasas.com> In-Reply-To: From: Ed Maste Date: Tue, 4 Oct 2022 13:52:26 -0400 Message-ID: Subject: Re: 5e4854cbf8d8 - main - rescue: Link libzutil after libzfs. To: John Baldwin Cc: Ravi Pokala , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4MhlfF0WDbz4H1r X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of carpeddiem@gmail.com designates 209.85.216.41 as permitted sender) smtp.mailfrom=carpeddiem@gmail.com X-Spamd-Result: default: False [-3.10 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[emaste@freebsd.org,carpeddiem@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[209.85.216.41:from]; RCVD_IN_DNSWL_NONE(0.00)[209.85.216.41:from]; MLMMJ_DEST(0.00)[dev-commits-src-all@freebsd.org,dev-commits-src-main@freebsd.org]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; MIME_TRACE(0.00)[0:+]; FROM_NEQ_ENVFROM(0.00)[emaste@freebsd.org,carpeddiem@gmail.com]; ARC_NA(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; DMARC_NA(0.00)[freebsd.org]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[carpeddiem]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N On Tue, 4 Oct 2022 at 12:33, John Baldwin wrote: > > Yes, that's normally how that works (you link libc last, not first). lld is just > a bit different as it will look in earlier libraries to resolve symbols (backwards > references) not just forward references. ld.bfd only does forward references by > default. If anyone wants more info, the IMPLEMENTATION NOTES section in ld.lld(1) has a reasonably detailed description of lld's behaviour.