From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [IPv6:2001:a60:0:28:0:1:25:1]) by sourceware.org (Postfix) with ESMTPS id C864B3858D28 for ; Wed, 3 Nov 2021 20:30:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C864B3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nefkom.net Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Hkz0j6SbLz1rk5m; Wed, 3 Nov 2021 21:30:13 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Hkz0j40Yjz1qqkB; Wed, 3 Nov 2021 21:30:13 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id y567PqA3i3Uo; Wed, 3 Nov 2021 21:30:12 +0100 (CET) X-Auth-Info: 9ZULb5Fok/Gt/42m4DB+xi5euQmCfKLvTaRRuVH1J/a4fPx53rtGdUa/av1MDXTa Received: from igel.home (ppp-46-244-172-4.dynamic.mnet-online.de [46.244.172.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 3 Nov 2021 21:30:12 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 640F42C0CFF; Wed, 3 Nov 2021 21:30:12 +0100 (CET) From: Andreas Schwab To: Tom de Vries Cc: Tom de Vries via Gdb-patches Subject: Re: [PATCH] [gdb/testsuite] Fix 64-bit dwarf test-cases with -m32 References: <20211101175611.32103-1-tdevries@suse.de> <874k8vfvg4.fsf@igel.home> <32e918ff-583b-cc04-4f67-09b160b6d3cb@suse.de> X-Yow: I'll clean your ROOM!! I know some GOOD stories, too!! All about ROAD Island's, HUSH Puppies, and how LUKE finds GOLD on his LAND!! Date: Wed, 03 Nov 2021 21:30:12 +0100 In-Reply-To: <32e918ff-583b-cc04-4f67-09b160b6d3cb@suse.de> (Tom de Vries's message of "Wed, 3 Nov 2021 21:00:53 +0100") Message-ID: <87a6il0yp7.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP 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: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Nov 2021 20:30:16 -0000 On Nov 03 2021, Tom de Vries wrote: > On 11/1/21 9:54 PM, Andreas Schwab wrote: >> On Nov 01 2021, Tom de Vries via Gdb-patches wrote: >> >>> When running test-case gdb.dwarf2/loc-sec-offset.exp with target board -m32, >>> I run into: >>> ... >>> builtin_spawn -ignore SIGHUP gcc -fno-stack-protector -m32 \ >>> -fdiagnostics-color=never -c -o loc-sec-offset-dw641.o \ >>> loc-sec-offset-dw64.S^M >>> as: loc-sec-offset-dw641.o: unsupported relocation type: 0x1^M >>> loc-sec-offset-dw64.S: Assembler messages:^M >>> loc-sec-offset-dw64.S:29: Error: cannot represent relocation type \ >>> BFD_RELOC_64^M >>> ... >>> >>> Looking at line 29, we have: >>> ... >>> .8byte .Labbrev1_begin /* Abbrevs */ >>> ... >>> >>> It would be nice if the assembler could handle this somehow. But I guess >>> it's not unreasonable that an assembler for a 32-bit architecture will object >>> to handling 64-bit labels. >> >> Shouldn't the 64-bit dwarf tests just be skipped on 32-bit targets? > > Because ? Because 32-bit targets have no way to represent 8-byte relocations. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."