From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by sourceware.org (Postfix) with ESMTPS id 3B18F3852742 for ; Mon, 18 Jul 2022 12:18:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3B18F3852742 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=xen0n.name Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xen0n.name DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1658146688; bh=ME6JAa8UtUtXx8BhE03yQrUEoqt1WDk7A/Ve7LOsZsM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=c3aX4AeLYy+H/NrSW+/UuQxcXWqRTNxN1yWC26MSbDWl/6tCOF6UyCCMbQzIjwrBj Lj8kGmEjAfoNWCCvw/QJ/mx2U/O5EMVkWyY09SEO5wikh68R1ArlOqkIuVmkQvh/o5 xnW1zk7NUpo9NVj4ppCgFTMhUXrCruTJhpq+kbuQ= Received: from [100.100.57.190] (unknown [220.248.53.61]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id A2F666067B; Mon, 18 Jul 2022 20:18:08 +0800 (CST) Message-ID: <3127e10f-ca4c-bec9-dd01-78c0b8e04ee1@xen0n.name> Date: Mon, 18 Jul 2022 20:18:08 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:104.0) Gecko/20100101 Thunderbird/104.0a1 Subject: Re: [PATCH 1/5 v1] LoongArch: bfd: Add new reloc types. Content-Language: en-US To: WANG Xuerui , Xi Ruoyao , liuzhensong , binutils@sourceware.org Cc: xuchenghua@loongson.cn, mengqinggang@loongson.cn, Fangrui Song References: <20220718084316.390672-1-liuzhensong@loongson.cn> <8b637076-eb4c-47e0-2987-ac0973e38bca@xen0n.name> <62de74c5cfc7e558f82025ccffe5547d58bff172.camel@xry111.site> <417f93f5-64ca-9eb1-c338-b55edfd8eb83@xen0n.name> From: WANG Xuerui In-Reply-To: <417f93f5-64ca-9eb1-c338-b55edfd8eb83@xen0n.name> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, 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 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, 18 Jul 2022 12:18:14 -0000 On 2022/7/18 20:11, WANG Xuerui wrote: > For example, let's say the extension works like this: ordinary slot > syntax, plus "p", plus an postprocess operator, with "s\d+" for "imm > slot = assembly operand >> N", and "p\d+" for "imm slot = assembly > operand + N". Actually it's "imm slot = assembly operand - N" for the proposed "p\d+". It doesn't matter that much though, because ALSLs don't take part in relocation, it was just a side mention.