From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 19BEC385DC27; Fri, 16 Jul 2021 08:24:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 19BEC385DC27 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/91602] GCC fails to build for riscv in a combined tree due to misconfigured leb128 support Date: Fri, 16 Jul 2021 08:24:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: belyshev at depni dot sinp.msu.ru X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2021 08:24:51 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D91602 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #13 from Jakub Jelinek --- Note, on the DWARF side it has been agreed to get rid of the requirement th= at uleb128/sleb128 has to be minimum possible length and I think all consumers known to me will not mind non-minimal leb128 as long as it isn't padded too much (i.e. fits within 10 bytes or so). So, even heavy relaxations in the assembler and the linker shouldn't prevent leb128 support, all one needs for linker relaxations is ULEB128 and SLEB128 relocation that allows subtractio= n of two symbols. But what do you do for non-LEB128 symbol subtractions? Do you have relocations for lab1 - lab2 if one has .quad lab1 - lab2 + 15 ?=