From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id 56AA1385222B for ; Mon, 21 Nov 2022 17:43:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 56AA1385222B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x629.google.com with SMTP id i10so30220615ejg.6 for ; Mon, 21 Nov 2022 09:43:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=WAzb8vpFxNJL+8EOHeo1QgVXSPlscoF2RyA4zsEyDkQ=; b=K49tXi87hPGj5pLciVYPGm2XsECLKKqVnRYom41NdT7xTZZ9qXa4AD0ky1Tuhqxtnz 7O0bgQEZYDHdolhl2Q6qHC9lj4aqbNA3euNsZIVLJlbwo0fR5FGuKtHcSAItU6/ScFmj 7oAu9zRVz0asmnkGMutc78Z7G7FxfGgraoVM1SYYhES71urxcnxbLAZH/f38MxSyF7sR Z+s3AG6dpc0AdPyUqMro2CKV5MTKghFm4OD+sBxiatRQ0lYgc96dAC65iU84mbtse3cc OaA92E7LzsN9RWBceYXyRZanWO8gpfttqXtEtOHq9F9DY5eB9lYV/PXclKL58D85uB9l GuCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WAzb8vpFxNJL+8EOHeo1QgVXSPlscoF2RyA4zsEyDkQ=; b=VPenOWsZmDmNdm/+mrKOgsOOZLoqIERB7Co/+cSZY8jvohGx1PS3wWwYR7XQLcxT9b 6BlQvCJgz8dt1ZK0qpvquMAzL+DWrXqGmf9nF0aFz2oVru72EGW2N2fVyxeOMlXPvcRr NozVJybw1LxrrVnc+h04vtnJnvLyAhITQ1Jl5XcVsw6bLuel9728///XyliEKfM6C/IV +b1+4JdfOIFgXo+arJ/U+EgXwUpqDUmd5pP9vZbcwlT14xyD7xuS2FzBgKdEtlnAVZvk iCAdCW9jqnHfnAQ0Mchcttot7CQAnO5NTsSjKU21CWG4j0xz8eHIy1FILvf1b5bxkDFb Ryrg== X-Gm-Message-State: ANoB5pmFIYxtRGcaQTRIdBWJkbP5HFEJBg2pUS04q8LtGUrNAsHn7E59 ToRWYBfb6vzeiHtBOzhAlq8cCwR0OnhOfguYIs7Hw8Hp X-Google-Smtp-Source: AA0mqf5GoDjSu5xP4IyDCpxKPf1X3U2PLstOV9EcufwPau1eIbyQ6opZl4uPDesoP/UN3CfZ3XJf8uJHU+0ZEwJWvBQ= X-Received: by 2002:a17:906:4351:b0:78d:513d:f447 with SMTP id z17-20020a170906435100b0078d513df447mr2523337ejm.708.1669052611774; Mon, 21 Nov 2022 09:43:31 -0800 (PST) MIME-Version: 1.0 References: <43d57592-85f9-f715-f077-113838a5ee44@redhat.com> In-Reply-To: From: Tom Kacvinsky Date: Mon, 21 Nov 2022 12:43:20 -0500 Message-ID: Subject: Re: Question about readelf output from shared library built with lld, gold, and bfd linkers To: Binutils Content-Type: multipart/alternative; boundary="000000000000094bd905edfe98d1" X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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: --000000000000094bd905edfe98d1 Content-Type: text/plain; charset="UTF-8" On Mon, Nov 21, 2022 at 11:48 AM Nick Clifton wrote: > Hi Tom, > > > Also, a question: would -z combreloc make a difference with relocations > at > > startup? I was just perusing the ld manual and ran across that. > > It may well do. It is certainly worth a try. > Alas, no joy. These are the types of fun problems I face at work - change one of the tools we use to build our product and one of our performance tests has a regression. Then it is on me to figure out why. But, to be honest, this is black magic to me. I do not know where to start looking to figure out why lld generates the final ELF file that runs quicker than what is generated by the gold linker. So, I guess the next question is this - what should I look for in the files generated by lld and gold, respectively, using readelf? Thanks, Tom --000000000000094bd905edfe98d1--