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 [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id C44363852C7F for ; Mon, 21 Nov 2022 15:17:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C44363852C7F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669043820; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Fb75BegXT/9+SeVB+4gq2LI1Mm69v738nFXU7KFjg4Q=; b=e0MquP0VGonOer18LFMeud2Kyx5EgxAEBW/6PM8QNbimilDg9Ci7vgQ0DBOVq61DzBZXrI mN3jaYHb/za7k2h8v7vJyU9UmXJOyY4t3eERDG5nm6dOGu6S8KmKudpDIIs7wdzq4jLO/z 7zJ4XEfeW2fpK7IfQZi+9zo2+YBzvLU= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-620-PHgjgtTPNzGlDKN_onuhhw-1; Mon, 21 Nov 2022 10:16:59 -0500 X-MC-Unique: PHgjgtTPNzGlDKN_onuhhw-1 Received: by mail-wm1-f72.google.com with SMTP id h9-20020a1c2109000000b003cfd37aec58so6646143wmh.1 for ; Mon, 21 Nov 2022 07:16:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Fb75BegXT/9+SeVB+4gq2LI1Mm69v738nFXU7KFjg4Q=; b=whzZ3ffH6G+kpZQNbNyJz3lj6j6h/4wkvSFn3wsvkBkB3K6W71g7Vwafe6M+Lna9ML m4GJLMptIdn4Hf3A9HiRF0bwb7BMKj9Gmx+eAYI53GNuW43XszwutQGNpJuA3as+TNfG SmwP3FqJmz2IlKFB+uQVdEIXMD49q+feWO02R5iDwSjmp0ZHBoiqEd+QmvnmfHZ3AUPT eyb02e4NAbjzBvHx76C7rVrfqVhEsFq7fdSulcSKmHsd13loXuT6+xePjzgxIWm3xrWU iLt3h2/stt5Mv5XG2U1QdC1IdyqTgu5gp8luMp5qmDMDUIv7bBHYc5FyMNC+0Q0f+lOS nRsw== X-Gm-Message-State: ANoB5pnWQ11ejTqeIiIbNnwsFk8vsSxnRXzEtfTucRXrPBpgSS5EAoGj Qs0ImloGs6nZVmPU83Le2EkqCZR+FOntPR0J+3LKBfEl/pIBEBTc+9kLbHKiL7ghy1WLin/TqRv ceP8LEwY1elv+mm3WMQ== X-Received: by 2002:a05:600c:4e46:b0:3cf:8762:23d9 with SMTP id e6-20020a05600c4e4600b003cf876223d9mr694513wmq.112.1669043818071; Mon, 21 Nov 2022 07:16:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf7mS2RM5mHCChtbyfsxokiLJUUaL53ofEMHUa6cZAENu510aqBkbhpkh8iv3YEvBsroaO2oyA== X-Received: by 2002:a05:600c:4e46:b0:3cf:8762:23d9 with SMTP id e6-20020a05600c4e4600b003cf876223d9mr694507wmq.112.1669043817878; Mon, 21 Nov 2022 07:16:57 -0800 (PST) Received: from [192.168.1.18] (adsl-164-85.freeuk.com. [80.168.164.85]) by smtp.gmail.com with ESMTPSA id o2-20020a05600c510200b003cf5ec79bf9sm15876255wms.40.2022.11.21.07.16.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Nov 2022 07:16:57 -0800 (PST) Message-ID: <43d57592-85f9-f715-f077-113838a5ee44@redhat.com> Date: Mon, 21 Nov 2022 15:16:56 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: Question about readelf output from shared library built with lld, gold, and bfd linkers To: Tom Kacvinsky , Binutils References: From: Nick Clifton In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-GB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 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_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Tom, >> I assume that you have compared started up times when linking with "-z now" >> vs "-z lazy" ? >> > > I thought -z lazy was the default, and that if you wanted the equivalent of > LD_BIND_NOW=1 on the command line, then one would use -z now. It depends upon the environment. In Fedora (and RHEL) "-z now" is the default. The reason is program security - lazy binding means that an attacker might be able to alter the relocations before they are evaluated, allowing all kinds of unexpected things to happen. Cheers Nick