From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 30DE2386EC2D for ; Thu, 1 Oct 2020 18:25:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 30DE2386EC2D Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-144-YkUZ-xjgOcCHr00AREnZTQ-1; Thu, 01 Oct 2020 14:25:02 -0400 X-MC-Unique: YkUZ-xjgOcCHr00AREnZTQ-1 Received: by mail-qt1-f198.google.com with SMTP id g44so4371476qtb.15 for ; Thu, 01 Oct 2020 11:25:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=QjJ/RQoliu6PdKOYRVt91KSVrlqVFjP7LTYcpHig0uI=; b=l8YUnn6u9Nc8eenW7hHH05g8IJnzb+az6JJd+UOx3GYnOyUGLtOoHSmyU0Phm2ghhK k9ARf9JJim5WEyvmVj21bMU2MQtGJaSpCG/KHe+Zg+9ykUegyK5l+CrTxD1B3MC8Ulo+ wexy9zLwM3qi7QkgkMX1Okoc6X08LwS1iMrayi8utWett9ZF3Vjnr2i60Rb/wx30js7y 0B7Yklw3sHj4QDAmQ9fo+Y53G0UsKJG9tTbNZicOZa3+2h/hYqJ6Eoiuex8ytOj6NSha 0FdECqQzDyfnm8HFFBt7sRSE3NphyLJMpGLRZsqnTOGqRITJ5DZez2Nkyr5VVxdM0D42 phRQ== X-Gm-Message-State: AOAM531hw8x8IlEAhzT09Zv9wI/XqwZ8FHX2zwt7k6iX1DHfOQjhrQKZ FqZ0RVRPXXVvxTeoIK1vZq2ejzmR/ohbwGyL926NmOPASAuzp9ceIetO4V+3WDXXA0BJJvOG/Vt bygkUKBfgJI9Kjp2YawFM X-Received: by 2002:aed:3245:: with SMTP id y63mr8909063qtd.324.1601576701788; Thu, 01 Oct 2020 11:25:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwL1Xa/mTkCUdxoF6T9qch4LFJIp4TO/rDAgsboxb9pysJ0dWgQ6b7efthPqrz4nP0jV7o9kw== X-Received: by 2002:aed:3245:: with SMTP id y63mr8909038qtd.324.1601576701502; Thu, 01 Oct 2020 11:25:01 -0700 (PDT) Received: from [192.168.1.16] (198-84-214-74.cpe.teksavvy.com. [198.84.214.74]) by smtp.gmail.com with ESMTPSA id q142sm6853512qke.48.2020.10.01.11.25.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Oct 2020 11:25:00 -0700 (PDT) Subject: Re: [PATCH 01/28] elf: Do not search HWCAP subdirectories in statically linked binaries To: Adhemerval Zanella , libc-alpha@sourceware.org References: <75fdede6bc2db8a3638c1402855b2c5245f4b545.1601569371.git.fweimer@redhat.com> <95b87318-0def-df24-d05d-1360f9857e9d@linaro.org> From: Carlos O'Donell Organization: Red Hat Message-ID: Date: Thu, 1 Oct 2020 14:24:59 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <95b87318-0def-df24-d05d-1360f9857e9d@linaro.org> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-List-Received-Date: Thu, 01 Oct 2020 18:25:05 -0000 On 10/1/20 2:22 PM, Adhemerval Zanella via Libc-alpha wrote: > > > On 01/10/2020 13:31, Florian Weimer via Libc-alpha wrote: >> This functionality does not seem to be useful since static dlopen >> is mostly used for iconv/character set conversion and NSS support. >> gconv modules are loaded with full paths anyway, so that the >> HWCAP subdirectory logic does not apply. > > This change looks reasonable, although it makes the semantic of > statically linked programs slight different than dynamic one regarding > dlopen. I think this is OK. dlopen from statically linked programs is deprecated, the only uses should be internal to glibc in NSS And iconv. We really really want: * Just a statically linked program that has no external deps. * Just a dynamically linked program can support dlopen. This half-way inbetween support we have has serious consequences, and is the reason I supported us deprecating dlopen from static binaries. Users should not be allowed to shoot themselves in the foot. $0.02. -- Cheers, Carlos.