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.129.124]) by sourceware.org (Postfix) with ESMTPS id BE2E338AEB4E for ; Thu, 8 Dec 2022 13:19:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BE2E338AEB4E 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=1670505585; 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=ppGa6MYznbrE6PD0U3ypLudYUIR0SPE/eyUpSjwjqRI=; b=VW/1vcppWNjyAW76RTZ8rTWgvmX0fTUh9RIehClWFtORqTn1tWPn6/MAa+kzjyPArKJbCL zvG3EkqQr0gya7pOCA7Mhqb0BCs4OTFqktVmz+bVxKBGiu5bhER2lHnCzBufRZ27UQ/i/Q PHgfao5QCf6sNH9yVUPi68IICoK6ddU= Received: from mail-yw1-f199.google.com (mail-yw1-f199.google.com [209.85.128.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-53-56JhAqqfNrmmeQ92zFluxQ-1; Thu, 08 Dec 2022 08:19:44 -0500 X-MC-Unique: 56JhAqqfNrmmeQ92zFluxQ-1 Received: by mail-yw1-f199.google.com with SMTP id 00721157ae682-3fe3bedbb16so13140617b3.15 for ; Thu, 08 Dec 2022 05:19:44 -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=ppGa6MYznbrE6PD0U3ypLudYUIR0SPE/eyUpSjwjqRI=; b=nBFovmwuwptIVf1G8DQS1n7/55yque390210qCtcWeL25LeAJlwpf1pf3pHGS0cOGJ Uw/Mg0BIq9knGeFkJD5cmc1j3jpkkeePhdqz4fZEJbyY56e5nktziE2gqlplcxSpIh8D RXl510CqSYdt+jZ3Gyg/9dUxHJr0MI2AczjekTIBP09fSQnC2JyyHPOg0l+4eZzdD9Rn GkFlwL0zPJRl4iwuQA8+4e8mrJw8lCQZFaa9BAIX37SCvqw/hudggE0hpF0r0gypyGXa gl3G0Gf08PNgBsYrEzbxT7nwrVk0dK4tfLJOGISMlZ7mgQV1XMh6qlMtifW+RbRdlj6u V67A== X-Gm-Message-State: ANoB5pk3i1TMTepI23SC3mIrTsR3pafAiL8vhq/mlxWfekDBtkjWfeSD 4LBZWbm39mkwWyOd+oxtz+/WxbU5DQxL6nenh9HSR47eZpvc5x8yakSomavrSZDQlT8GgSUxejk 3YLFS30EqpsZqy2SvdA== X-Received: by 2002:a81:7002:0:b0:378:7e30:2da9 with SMTP id l2-20020a817002000000b003787e302da9mr2114758ywc.15.1670505583693; Thu, 08 Dec 2022 05:19:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf6TLBpd/MQ/iUnwti1+gvWXaAdRege9MGyKyXsV3OZKewXWgtjx6S7JOxlMPqID6nK1LRSCJg== X-Received: by 2002:a81:7002:0:b0:378:7e30:2da9 with SMTP id l2-20020a817002000000b003787e302da9mr2114748ywc.15.1670505583459; Thu, 08 Dec 2022 05:19:43 -0800 (PST) Received: from [192.168.1.18] ([79.123.75.206]) by smtp.gmail.com with ESMTPSA id s18-20020a05620a29d200b006f9ddaaf01esm19967194qkp.102.2022.12.08.05.19.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Dec 2022 05:19:42 -0800 (PST) Message-ID: <15cc745d-b635-daab-4a02-918a5ea5d923@redhat.com> Date: Thu, 8 Dec 2022 13:19:41 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: Named local symbols in the ELF dynamic symbol table To: Florian Weimer , binutils@sourceware.org References: <87y1rke9ub.fsf@oldenburg.str.redhat.com> From: Nick Clifton In-Reply-To: <87y1rke9ub.fsf@oldenburg.str.redhat.com> 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.2 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 Florian, > Is there a way to get the same effect on other targets? How are the loaders for other targets linked ? If they include the -X or --discard-locals option on the command line, then removing that option might achieve the result that you desire. > It would best > if I wouldn't have to bloat the entire symbol table for that. I don't think that you have symbol names without having entries in the symbol table. Although as you say, if they are local symbols then they will not also take up room in the GNU_HASH table. Cheers Nick