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 26AAE3858C2C for ; Mon, 9 May 2022 16:26:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 26AAE3858C2C Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-634-OtNBx0cNPBCxV5JpTG_eIg-1; Mon, 09 May 2022 12:26:41 -0400 X-MC-Unique: OtNBx0cNPBCxV5JpTG_eIg-1 Received: by mail-wr1-f72.google.com with SMTP id l7-20020adfa387000000b0020acc61dbaeso6031760wrb.7 for ; Mon, 09 May 2022 09:26:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:cc:references:from:subject:in-reply-to :content-transfer-encoding; bh=w9CqSSm5ozrQcwbESNkyOgIkRYYg8zoSAQTj5M6Peuw=; b=KKqW0lVjUU68cBoyggREAlIyAdojptJfR2l4TxslPhN7mJKx+l5+9sr2JZoTRdh1I1 W0n9ljh+mMPZ09sGvTLqDRHZUlZ4StarqQes2jwnfaeW0433PQoJZRQpQseKvzXzHSW0 EkwHnhYkdGDMIcNuyBnFiqZsL3gz3k+ZHqdT3kF7BDv5miN9QQkE51s/+6JH4QM+7M00 gbWGykKP6yoK9C0RGzMOLFZfPwWJzqCiC3Gc3jgIVZ6U4ubrD+0BtI7h51akibm0KwJ5 es3EEMIfhZ1TJsYmm5RVO/UhPfrO1e9qxd1I5sQjnR2WSrGEWCAD+yd9ce88XpU/ZI0Z FCuA== X-Gm-Message-State: AOAM531VWXwGty9eIkUR3ZCd6QzjN6Z+MHJNDcNSiFwbKgPeoZkByJ2w tteJNpuc7O0VM8H4qa4Sj2WPLk0ootuoNVeziD6bl2fhK3XPNMLLD6fNhS1JsQmGXpLcxFeqZy+ 6RrFVKI2xs5JAeoOWzA== X-Received: by 2002:a05:600c:3c97:b0:392:9ad0:1911 with SMTP id bg23-20020a05600c3c9700b003929ad01911mr23859801wmb.187.1652113600342; Mon, 09 May 2022 09:26:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFtxF4IoemwombEEsSzWw733hu375vhREbzuekBwy7ZmgBDkdyy+zeXrWERx0GTdS0WHESww== X-Received: by 2002:a05:600c:3c97:b0:392:9ad0:1911 with SMTP id bg23-20020a05600c3c9700b003929ad01911mr23859788wmb.187.1652113600179; Mon, 09 May 2022 09:26:40 -0700 (PDT) Received: from [192.168.1.6] (adsl-2-solo-173-39.claranet.co.uk. [80.168.173.39]) by smtp.gmail.com with ESMTPSA id bj20-20020a0560001e1400b0020c5253d8edsm11228008wrb.57.2022.05.09.09.26.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 May 2022 09:26:39 -0700 (PDT) Message-ID: <8756161e-4ba8-f552-5cf4-d1adcad33534@redhat.com> Date: Mon, 9 May 2022 17:26:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 To: Fangrui Song Cc: binutils@sourceware.org References: <87v9115um8.fsf@redhat.com> From: Nick Clifton Subject: Re: Commit: Add support for displaying unicode characters 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=-4.7 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_LOW, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2022 16:26:44 -0000 Hi Fangrui, > I just learned that this patch added -U as an alias for --unicode. In > macOS nm and llvm-nm, -U is an alias for --defined-only. > --defined-only seems much more useful than --unicode. I wonder if it > is too late to redefine -U as --defined-only... No, it could be changed. I have to say that I would have thought that -d was a better choice for the short version. But anyway. Before making the change however, I thought that it would be best to check to see if there are any other inconsistencies and I did find a couple: * nm uses -s as the short version of --print-armap, whereas llvm-nm uses -M. * nm uses -V as the short version of --version, whereas llvm-nm does not have one. The support/lack of -V does not strike me as important, and it should be a simple matter to add -M as another short-version of --print-armap, so unless you have any objections I will create a patch to change -U and add -M. Cheers Nick PS. I also saw that llvm-nm has a -W/--no-weak option which is missing from nm. Is there a binutils PR filed to add this feature ?