Message ID | c24e073a-2fde-4a5f-8ecb-61d204abb704@suse.com |
---|---|
State | New |
Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 24EE43857706 for <patchwork@sourceware.org>; Thu, 21 Nov 2024 12:40:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24EE43857706 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=google header.b=dLeEZApf X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id 6D1E2385801B for <binutils@sourceware.org>; Thu, 21 Nov 2024 12:39:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6D1E2385801B 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 6D1E2385801B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732192777; cv=none; b=uY+mSEjrlrcRPDqSPqhWYE2x/QFsAObhsGtNBxCtOzq7E34+XxQZRgMVD4NRWeQopBCHFQka09QzLL97vxcv4i267EXd3XHCZMuium8gc3hXjBbt9QkNPh2Ba9eaRm94UXqy28t2eZexzmiwsJAAkeaAp+sfjdmx6sp8GO+z1d8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732192777; c=relaxed/simple; bh=ERwQQ+s4i60w5qi7wBX/sB/hNMY4WOKpl2V3hEHTURs=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=gJjoyfI59CR6kO6THAgwWzdkp2/AtlwhS6QEGcVo7UyFzkqD4SZrTYGdzQl/7/hRef0DHNOVYiBGCNWXmuczuLz9AFEMWrKuCFg6LuqpYqT847v5emDCSonUhQfzw+ILz8v1Ys6gaA5S4IvFcE+6HGab+HTPizZr1q6QnGWYfas= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D1E2385801B Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-aa1e87afd31so124038766b.3 for <binutils@sourceware.org>; Thu, 21 Nov 2024 04:39:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1732192776; x=1732797576; darn=sourceware.org; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=Dh19qU92w9haWg2lksxOn7S+Bh3/gEz04vDwCTwLbkE=; b=dLeEZApfH6OK/4D/Ab0YXxTNWdveIk+VuTlKpbpSaV4k2u1johHlrx44zBv4/ME/yW KieE/vnFWU7S+y42cuNIGpJmKynCK9odMQTZneVa1xqAX9EAGvlCf+w+IG5TgDmqihtV w7oZfn/17OWibxbS6xL4g6kv91uTCzNdhfFZTxUuOQXfBy34tuQEYUPi6NiaYMvVC8hX caVZBiQj09eMu3zzkltE1KD/z2lIfJ8aeP7K5Aga+Fw5bJ2HE7Hgu4dw6IXpPm5cFPCz 2iyejAQLII5eIJsZV4gZmpxa40TuxrxJlTMsnhC/znraRoZYJHty40n4f+J2WsEFj93g lq3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732192776; x=1732797576; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Dh19qU92w9haWg2lksxOn7S+Bh3/gEz04vDwCTwLbkE=; b=sOxdPjaFNrVFnd5Cg+4fu9x1b6/dqZYvCzE6PwOim9RAymdgkkG7bkK6QWxnEl0bDk TGcVa5UPPk4NvsrHbyHNgB97UPXjuZcUhxVG4MUZKPvdki9yXtdML5rM9/3kNYEFjWrd EHgYqMnDrbenZFBMwCM9s39DxGB4kKWp+WEMCy+EQQoNwY9Nrbt+Es6KOMQeEHX6hdEb QWmUzd5z2c42OgEbqMcOYYXcmsGN9u/l7PV2Xh3eJFa7zKp3ZtpPQSYijMBmbER2X/3G Ht9wQW/EW5oGxHm84vbUT78L5ajLmjyGh4T7cZBzeMJzAHGxoePZYu1ZnTTHAvqUZ7aC y4NA== X-Gm-Message-State: AOJu0YwHv6LfarHypq/5Xv2W/4sUsPvFmuIu2FYdCah1HIAZ4eUa0VwU jzwI1AeT9HQv1zi4q+HTl/Fx/p60rVpyPiSPjNQVhFzlaYkM1tanh3QoGKDzL4mYo+83pY5mCgo = X-Google-Smtp-Source: AGHT+IE62PWVXSxzpTSzcoirxo+erHalzKeSy/bZLRWp6X7uZHKukrLHn0yij19v1OyOfkV0ZYU7qg== X-Received: by 2002:a17:906:ef03:b0:aa4:ce46:ad25 with SMTP id a640c23a62f3a-aa4dd57e0aemr657064466b.27.1732192776115; Thu, 21 Nov 2024 04:39:36 -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 a640c23a62f3a-aa4f437ff56sm77476366b.188.2024.11.21.04.39.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Nov 2024 04:39:35 -0800 (PST) Message-ID: <c24e073a-2fde-4a5f-8ecb-61d204abb704@suse.com> Date: Thu, 21 Nov 2024 13:39:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Binutils <binutils@sourceware.org> Cc: "H.J. Lu" <hjl.tools@gmail.com> From: Jan Beulich <jbeulich@suse.com> Subject: [PATCH] x86: restrict gas'es recognition of -s to Solaris Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3022.8 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 autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
Series |
x86: restrict gas'es recognition of -s to Solaris
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_binutils_build--master-arm | success | Build passed |
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | success | Build passed |
linaro-tcwg-bot/tcwg_binutils_check--master-aarch64 | success | Test passed |
linaro-tcwg-bot/tcwg_binutils_check--master-arm | success | Test passed |
Commit Message
Jan Beulich
Nov. 21, 2024, 12:39 p.m. UTC
When there for Solaris compatibility only, also recognize it only there. This way the option becomes available for other possible uses. While adjusting md_shortopts[], also re-arrange things such that we have only a single, uniform definition of it. --- Arguably -k should then also be limited to TE_FreeBSD.
Comments
Hi Jan, > When there for Solaris compatibility only, also recognize it only there. > This way the option becomes available for other possible uses. I wonder if this is the best possible way to handle this: * -s is only present for Solaris as compatiblity. At least gcc doesn't use it at all. * Besides, gcc has done away with Stabs and gdb is following suite (or has already), so Stabs become increasingly irrelevant. * Keeping the (effectively unused) option on Solaris, but using it for something else would mean that `something else' isn't available on Solaris. Just a guarantee for user confusion, I believe. In short, I wonder if it wouldn't be better to just reject -s everywhere instead. WDYT? Rainer
On 21.11.2024 13:51, Rainer Orth wrote: >> When there for Solaris compatibility only, also recognize it only there. >> This way the option becomes available for other possible uses. > > I wonder if this is the best possible way to handle this: > > * -s is only present for Solaris as compatiblity. At least gcc doesn't > use it at all. > > * Besides, gcc has done away with Stabs and gdb is following suite (or > has already), so Stabs become increasingly irrelevant. > > * Keeping the (effectively unused) option on Solaris, but using it for > something else would mean that `something else' isn't available on > Solaris. Just a guarantee for user confusion, I believe. That "something" could still be available there via long option. Solaris is, imo, confusing enough already anyway, and hence it shouldn't come as a surprise to anyone that some option may need spelling differently. > In short, I wonder if it wouldn't be better to just reject -s everywhere > instead. If someone had proposed a patch to do so, I probably wouldn't have objected (so long as a fair reason was provided). But personally I think this would be going too far. Jan
Jan Beulich <jbeulich@suse.com> writes: > On 21.11.2024 13:51, Rainer Orth wrote: >>> When there for Solaris compatibility only, also recognize it only there. >>> This way the option becomes available for other possible uses. >> >> I wonder if this is the best possible way to handle this: >> >> * -s is only present for Solaris as compatiblity. At least gcc doesn't >> use it at all. >> >> * Besides, gcc has done away with Stabs and gdb is following suite (or >> has already), so Stabs become increasingly irrelevant. >> >> * Keeping the (effectively unused) option on Solaris, but using it for >> something else would mean that `something else' isn't available on >> Solaris. Just a guarantee for user confusion, I believe. > > That "something" could still be available there via long option. Solaris > is, imo, confusing enough already anyway, and hence it shouldn't come as a > surprise to anyone that some option may need spelling differently. I'd have expected removing unnecessary differences would be considered worthwhile, rather than cementing them. >> In short, I wonder if it wouldn't be better to just reject -s everywhere >> instead. > > If someone had proposed a patch to do so, I probably wouldn't have objected > (so long as a fair reason was provided). But personally I think this would > be going too far. Your call: I'm busy with the upcoming GCC 15 release myself. Rainer
--- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -16706,11 +16706,14 @@ bool i386_record_operator (operatorT op, } #endif +const char md_shortopts[] = #ifdef OBJ_ELF -const char md_shortopts[] = "kVQ:sqnO::"; -#else -const char md_shortopts[] = "qnO::"; + "kVQ:" +# ifdef TE_SOLARIS + "s" +# endif #endif + "qnO::"; #define OPTION_32 (OPTION_MD_BASE + 0) #define OPTION_64 (OPTION_MD_BASE + 1) @@ -16834,10 +16837,12 @@ md_parse_option (int c, const char *arg) case 'k': break; +# ifdef TE_SOLARIS case 's': /* -s: On i386 Solaris, this tells the native assembler to use .stab instead of .stab.excl. We always use .stab anyhow. */ break; +# endif case OPTION_MSHARED: shared = 1;