From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 04C161F8C6 for ; Tue, 6 Jul 2021 10:22:20 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3F342382C40F for ; Tue, 6 Jul 2021 10:22:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F342382C40F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1625566939; bh=FFEQo7Np4NEf5kUzGNY57KtYmcKhNje5wJ/E14YC8gM=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=ZM3u8wnVE9OoAwKI3Zu5PUm8H3yfaLblOr9KVuzvy2nVQCvXLruuYjkwJeBo9n0IZ 0C7VuDVw+omkDKszy+jfYUF/psIsjxhPNpGItO/pZKNff+m4/AwWgWPJqRfrd8c0GG z6oqVUZg1gy5AY9EX/gbaG27GmTqr3GZ+EXxdHWk= Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by sourceware.org (Postfix) with ESMTPS id B3BAF3839C43 for ; Tue, 6 Jul 2021 10:21:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B3BAF3839C43 Received: by mail-yb1-xb49.google.com with SMTP id h7-20020a5b0a870000b029054c59edf217so26670758ybq.3 for ; Tue, 06 Jul 2021 03:21:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=FFEQo7Np4NEf5kUzGNY57KtYmcKhNje5wJ/E14YC8gM=; b=bM53I1PEMuVs1vjvj/vSQKaHA+d3uJG+oE8/C15QVoliX19+SwFCjgvD1HDgOACDlK 936yg3Y4LRX4dJ/oomYD5f0cHi+vyt3kDQ40wqtqbd0FO6/mPptX2hQlaAbVinfAbRAn iwOGkG7G14q3Z1fLGVohw6k0uQvvE+fV08SazZqfCvGgTAYc6DVkaqV/S83qwjCKHH4w rYOrchWbyYUjnJMpykpvTxL54vDWKN7NAusTb37WFvFt8CEGaqyVm4L7oKEOGWr+Ahjv Ad9pOAOYw+VFRBbVFYcNnAZfCWgsGUu6Zgvh1Qpzivw7mdDI6Iek8MCDPzrkZR2YjcT+ lO+g== X-Gm-Message-State: AOAM5302fQeyEnczYka1wtmha2ePgzym79nvz++IyRL21aG7b6attPWk PZpKmYRzfzUuap4aGfiNdQSwQQMIZ7ICDRcZVR/urWnuPo5pEu+i7M/o256UXnX+x4eH+1uOLNR Un00gM5d8+u2ijs1dapsCj2mjQPlJOjDp94xg6g/VM/o9RH0BaiYwaqVEXLZnD+lah3xhPWk= X-Google-Smtp-Source: ABdhPJytnjNqYVJQnQLWY8uWKGVqPZJkTTdgeUxW2tXF7D51ukxI2LeTfH1xDw16C1FLx12hSaqO+R0lwo0rdw== X-Received: from sidereal.syd.corp.google.com ([2401:fa00:9:14:5de5:2842:4686:770d]) (user=sidereal job=sendgmr) by 2002:a25:6c8a:: with SMTP id h132mr23302763ybc.454.1625566919167; Tue, 06 Jul 2021 03:21:59 -0700 (PDT) Date: Tue, 6 Jul 2021 20:21:30 +1000 Message-Id: <20210706102132.2170854-1-sidereal@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog Subject: [PATCH v4] rtld: Add --no-default-paths option To: libc-alpha@sourceware.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Fergus Dall via Libc-alpha Reply-To: Fergus Dall Cc: fweimer@redhat.com, chromeos-toolchain@google.com, clumptini@google.com, joseph@codesourcery.com Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" Changes from previous patchset: - Incorporated vapier's suggestions. - Initialized the path buffers in the tests, as strcat-ing into an uninitialized buffer is undefined behavior. - Stop adding support_install_prefix in tst-no-default-paths-dlopen when constructing the path to the system lib directory. This happened to work because I tested with prefix=/, but is in general unnecessary and incorrect.