From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) by sourceware.org (Postfix) with ESMTPS id 8EBC73858C98 for ; Mon, 19 Feb 2024 14:35:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8EBC73858C98 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 8EBC73858C98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:2 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708353304; cv=none; b=rWFE0wbcew+G+YeDHXjKboYOf5yEs7lq2MSHpbZAYgjhyGB8u+XVXFsOOIdhrbnY/J8uNYk7EKsQjiaQCS8LLXTTPBGI7GLF4Re2N6jMZ5ofQ9enlNGs/bSZbxI4wessTViEQ1PWjjiJFeFDGojL+HCvo5FXDDWwvhaHAgfCX88= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708353304; c=relaxed/simple; bh=Mr7vXKmkaprZwl0Ku/V4fy8DyWQ7xBb+A5K8IgcOy0s=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=R0pFnldoweZ9xUjYvL+NkViCEMs3NnvV7QZrVEUR6GMMoe2ZAudvVP8nErFpvjQVNxyPW/KWjTI61t5tGHGUNKUlj+S/VLTZdu/wwRJpH9BRV6p8xkKIGkItdcJy6KJWSA4FaEwaBNaiEWgCcKy0wNzSK7w+sCMVpQeWi4c4b2U= 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 ACA181F803; Mon, 19 Feb 2024 14:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1708353301; 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=czBJS2wBnd1BEyKsRilOu0pE/D9V+sOlyXHTo6ivwOI=; b=lEuP69MGLc8ZtX4w60NFanqDk8z5oEES4IJG5jtay/rfLpIVfkgsO88Q5eNh4PW6Pcn0Au egUbo+nxJ+/kpfC/RcoTQ2RhndmYY8PE5YHglc/Rmu4w0Myw8UOfd45Ak/upNpYUurZ283 i1RvDfNV93/EEAnTIg/Tokct5rYTsJM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1708353301; 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=czBJS2wBnd1BEyKsRilOu0pE/D9V+sOlyXHTo6ivwOI=; b=LHE+2sOp4sFNT+4zEYQW5PBdGgNktuV+UN53jJuaxRWd2NYPGb5JNNDHY9rIVvEvxhCWfN zNcG+TZwWPt7BTAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1708353301; 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=czBJS2wBnd1BEyKsRilOu0pE/D9V+sOlyXHTo6ivwOI=; b=lEuP69MGLc8ZtX4w60NFanqDk8z5oEES4IJG5jtay/rfLpIVfkgsO88Q5eNh4PW6Pcn0Au egUbo+nxJ+/kpfC/RcoTQ2RhndmYY8PE5YHglc/Rmu4w0Myw8UOfd45Ak/upNpYUurZ283 i1RvDfNV93/EEAnTIg/Tokct5rYTsJM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1708353301; 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=czBJS2wBnd1BEyKsRilOu0pE/D9V+sOlyXHTo6ivwOI=; b=LHE+2sOp4sFNT+4zEYQW5PBdGgNktuV+UN53jJuaxRWd2NYPGb5JNNDHY9rIVvEvxhCWfN zNcG+TZwWPt7BTAw== Received: by hawking.nue2.suse.org (Postfix, from userid 17005) id 8D9644A0389; Mon, 19 Feb 2024 15:34:01 +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: It's 74 degrees, 12 minutes NORTH, and 41 degrees, 3 minutes EAST!! Soon, it will be TUESDAY!! Date: Mon, 19 Feb 2024 15:34:01 +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-Spamd-Result: default: False [0.35 / 50.00]; ARC_NA(0.00)[]; BAYES_HAM(-1.05)[87.70%]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCPT_COUNT_SEVEN(0.00)[7]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[sourceware.org,sifive.com,gmail.com,rivosinc.com,NelsondeMBP.localdomain]; MID_RHS_MATCH_FROM(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Level: X-Spam-Score: 0.35 X-Spam-Status: No, score=-3.2 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. This reduces the number of relocations for .text in the amdgpu kernel module from 217597 to 101552. -- 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."