From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by sourceware.org (Postfix) with ESMTPS id 0C2053858D1E for ; Fri, 23 Feb 2024 08:16:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0C2053858D1E Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0C2053858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::52d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708676207; cv=none; b=YN5S61L2dr6naHNJyeq54IjDklWYGEgqw56bFfPj72K1a1WSToIUqlqyf87RWVSgnFDkT3t7VquSttJHuhFEim3TvlfAVXXVn38JCfeGx9uNS7KFAxOiKBLpIM15ag1SCUua4n+rUSu++ZMGNLiGATAMzMuM+Qr0XnuVDrMKcgo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708676207; c=relaxed/simple; bh=UdvqMT7lfrsTBzB85pqovcD0L5HDdT3UpXoxAAOzsGg=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=E6LV/vOUHQ195O/acg+NZFKJr6n0a3jUb929u2zd4rqoSFxWyJ875G8FhWVKLUXCRbjv0MAdm3qBC+oydWqbsf2gkVaxk6JnTPZHNQ8iqRAzfcNSK6fhMe/xIerC3sMX+bcNCcRMuo/bPhyBzYEBlPrLMMDHWDI581qZ5zn0CsI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5656e5754ccso408123a12.0 for ; Fri, 23 Feb 2024 00:16:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1708676203; x=1709281003; darn=sourceware.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:cc:references :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=A+8DsnnZ93DSs9vV11hc7XWijc2SKEtT0xXMu260Ca8=; b=cJJflH6WWacY1GnJNDKBv88LLFxk4cUeUJSPyB1Aj0blCGeWFakwBIbR4hnSlriilz bb97zohvmBRhYG/pHPWLWcixo40+9WHAuK2KnQiSS0FZIMZskJcG4CZgyIA2pgHWB28I tjkYJSTYIqWjZmGzqIOHINbUHsX1mUDhE8wN+eUEKgoSvDrQFIV/URrrs4Qk/wkzrmeJ 3lA9YqAOFG+xZ2ggbttmWbva8lnXI32XFKH6DTJNmT5DgmU/MGIu1zBimIQP6bZK78bH gYXFGNOfwPPM7VXJNonFRphfD2CJfRH/koKpoxwKXOfjt45W1kN6o+u59RkxhP+6q+Rt fwIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708676203; x=1709281003; h=content-transfer-encoding:in-reply-to:autocrypt:from:cc: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=A+8DsnnZ93DSs9vV11hc7XWijc2SKEtT0xXMu260Ca8=; b=VMwzL0DSDje+dPQGsr3v3zWtXVj0q8WbZB+W1v6kZCYAFc8XUQptgiQl1Xl+WwpwBV PDgOn5QUIQ3yIEOUUVNr6XZBOTsZqeTIzVgxKh5JG49jU1K2ZzQEfTgvQyHFUcpufFYJ 8lOCI3cqch4eUyT3T5SydNi3dXpIW576i6FSIvtDMnUjKJeVvPefl+Jr9tfDd17r9jMJ 1Kgk8HIxtbnAL+TTHTFfpkPPolMEKbr861temvJtE1NldzjiLejfurD8Yn9+JwtqFF72 MIPp96/xiL4hdESPDoAgsqFVGmkcsBUoWsF28/Vahv6wUsunl+m7Xc4SLIfecP7F4sp5 YmgA== X-Gm-Message-State: AOJu0YyPhgKXn3bP9yIXsJ1mfOp8fDY4HmLcoHtugItoUTjthhyCQQ4y 0KvHZIySgY/lFjLBb7cBNJraTouNh3wFwgbD7pR9QBQo9No44uJoJxLHYCqE7g== X-Google-Smtp-Source: AGHT+IHjotDdDSAOe5gPJir+xXqCUeXcqEmglxvVebsQ8bilfACggDcc5Rkla+ocsOaOuY7ePuGjeg== X-Received: by 2002:a17:906:3911:b0:a3e:5a14:a2f7 with SMTP id f17-20020a170906391100b00a3e5a14a2f7mr719219eje.64.1708676203637; Fri, 23 Feb 2024 00:16:43 -0800 (PST) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id wb5-20020a170907d50500b00a40f7ed6cb9sm4990ejc.4.2024.02.23.00.16.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Feb 2024 00:16:43 -0800 (PST) Message-ID: <698666f6-4b89-4f4e-bfea-996c194182e3@suse.com> Date: Fri, 23 Feb 2024 09:16:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: objcopy: A potentially new option --ignore-symbol(s) Content-Language: en-US To: Ilya Kuklin References: Cc: "binutils@sourceware.org" From: Jan Beulich Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu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kEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3025.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE 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: On 22.02.2024 18:51, Ilya Kuklin wrote: > There is an option in the making for llvm-objcopy called --ignore-symbol(s). > We would like to have some feedback about the name of the option > and its functionality. > > The functionality of this option is to ignore the specified symbols when > executing other options that can change the symbol's name, binding or > visibility, so that their parameters remain unchanged. I think e.g. "skip" would be more appropriate than "ignore". > For example, when executing an option --localize-hidden, specifying an > existing hidden symbol with --ignore-symbol will keep its binding from > being changed. Question is how useful a single negative option is when perhaps you want to do multiple adjustments at the same time, with different sets needing exclusion. Imo separate negative options (e.g. --no-localize-hidden) would be more suitable in the long run. Jan > Purpose: > This option is needed mostly to support cases where there is a need to > change parameters of a vast number of symbols with exception of a few > specific symbols. Writing a negative pattern is much simpler than many > positive patterns that avoid a certain case. Plus, since there is an option > --keep-symbol that does exactly this but for removing symbols, there > should also be one that keeps symbols' parameters from being changed. > > If an option with the same functionality is going to be introduced at some > point to binutils objcopy, please consider naming it the same way or > suggest an alternative. > > Feel free to join the discussion: > https://github.com/llvm/llvm-project/pull/80873 > > -- > Thanks, > Ilya Kuklin