From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by sourceware.org (Postfix) with ESMTPS id 97E083858CDB for ; Tue, 30 Jan 2024 10:00:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 97E083858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 97E083858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706608862; cv=none; b=dEhTU1eW7eFAhdKIhMIUBXgUkJtAHt4PBeS0hJvQQg0nIHPP4zdcDz1PMPqC7GXP2tEbMUDK8HPE7EaNhbogcfLTI68UeFQnrExvLPrVNNUeVX8GBT8bRaTvTuZ4pYkd5FAlWZxk+VSunC5FC/rwOH6kT5uHFWoq8VT9HavwMjw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706608862; c=relaxed/simple; bh=+1lj1uGdUdnAZ4C8zlIw/eqM/nCw34aq/n9shMRbJvo=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=cyxxw1qatgwP+jldazjo8N9qnj4pzkQ3azZhNnXOTOJPXa1M/PCPLowVGdhdldmgmtrh6e2vg790q/bRvveRP/1sggd3Tpsytja8Lj5IRmT9g5iDsd9AOowTs1pGJ22b3R6PA/vYEdzqJkfFwE++Em3KxDBo6wqs/6IX29jGWgg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from hawking.nue2.suse.org (unknown [10.168.4.11]) by smtp-out2.suse.de (Postfix) with ESMTP id B0E2E1F841; Tue, 30 Jan 2024 10:00:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1706608858; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YGECVPpZ+hO8/kECXsCpisLEd4qAR6iSc/gldkn2nys=; b=2TRN5ec7QR6Rn2B6DsnGz8BYCin1W/HyxMchKHJYcjTbvAuOm1OuGr63t1oBeYpKyxRkQU +YA62PjM+OzODICEG6g3YloblpV/Y1iY2cKnBkbIZd7OD4mN1twvDhLejlL3gK2+t/KqzR m7pIlXlBMEaaDZNMpKtgVWrWj+wDhCg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1706608858; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YGECVPpZ+hO8/kECXsCpisLEd4qAR6iSc/gldkn2nys=; b=54zabJ4TICnWv2pUwV3dXh63NAx3NGnQ6bFqSAEkUv3JZ12komZbHr3sK0ZNx8pEd4YRLU QWeTJH7Q7sov6iBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1706608858; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YGECVPpZ+hO8/kECXsCpisLEd4qAR6iSc/gldkn2nys=; b=2TRN5ec7QR6Rn2B6DsnGz8BYCin1W/HyxMchKHJYcjTbvAuOm1OuGr63t1oBeYpKyxRkQU +YA62PjM+OzODICEG6g3YloblpV/Y1iY2cKnBkbIZd7OD4mN1twvDhLejlL3gK2+t/KqzR m7pIlXlBMEaaDZNMpKtgVWrWj+wDhCg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1706608858; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YGECVPpZ+hO8/kECXsCpisLEd4qAR6iSc/gldkn2nys=; b=54zabJ4TICnWv2pUwV3dXh63NAx3NGnQ6bFqSAEkUv3JZ12komZbHr3sK0ZNx8pEd4YRLU QWeTJH7Q7sov6iBw== Received: by hawking.nue2.suse.org (Postfix, from userid 17005) id 76D2D4A04E5; Tue, 30 Jan 2024 11:00:58 +0100 (CET) From: Andreas Schwab To: Nelson Chu Cc: binutils@sourceware.org, kito.cheng@sifive.com, jim.wilson.gcc@gmail.com, palmer@rivosinc.com, andrew@sifive.com, nelson.rivosinc.com@NelsondeMBP.localdomain Subject: Re: [PATCH] RISC-V: Don't generate branch/jump relocation if symbol is local when no-relax. In-Reply-To: <20240129131741.48824-1-nelson@rivosinc.com> (Nelson Chu's message of "Mon, 29 Jan 2024 21:17:41 +0800") References: <20240129131741.48824-1-nelson@rivosinc.com> X-Yow: Yow! Are we in the perfect mood? Date: Tue, 30 Jan 2024 11:00:58 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: 0.12 X-Spamd-Result: default: False [0.12 / 50.00]; TO_DN_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_SEVEN(0.00)[7]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; BAYES_HAM(-0.08)[63.22%]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FREEMAIL_CC(0.00)[sourceware.org,sifive.com,gmail.com,rivosinc.com,NelsondeMBP.localdomain]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,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 Jan 29 2024, Nelson Chu wrote: > Refer to commit, dff565fcca8137954d6ad571ef39f6aec5c0429c. Theoretically, > assembler don't need to generate the pc-relative relocation and the refered > local .L symbol when relaxation is disabled. The above commit improved the > pcrel_hi/pcrel_lo relocations, and this commit improves branch and jump > relocations. > > Passed the gcc/binutils regressions of riscv-gnu-toolchain. > > gas/ > * config/tc-riscv.c (md_apply_fix): Raise fixP->fx_done for all > branch and jump relocations when -mno-relax. Is this related to PR30591? -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."