From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by sourceware.org (Postfix) with ESMTPS id 57F663858D35 for ; Wed, 3 Nov 2021 18:00:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 57F663858D35 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 4Hkvh82ZFtz1qwGy; Wed, 3 Nov 2021 19:00:40 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Hkvh81kWKz1qqkH; Wed, 3 Nov 2021 19:00:40 +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 YJ8GRfaq_-8W; Wed, 3 Nov 2021 19:00:39 +0100 (CET) X-Auth-Info: Ckdyb13b8u2u7hIBPr3Q7bNHN61MMwoal8aHL8SoMn39hTtMxbYUc/Nuh+I8i0/9 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 19:00:39 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 4329D2C29CC; Mon, 1 Nov 2021 21:54:35 +0100 (CET) From: Andreas Schwab To: 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> X-Yow: I will establish the first SHOPPING MALL in NUTLEY, New Jersey... Date: Mon, 01 Nov 2021 21:54:35 +0100 In-Reply-To: <20211101175611.32103-1-tdevries@suse.de> (Tom de Vries via Gdb-patches's message of "Mon, 1 Nov 2021 18:56:11 +0100") Message-ID: <874k8vfvg4.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=-1.9 required=5.0 tests=BAYES_00, DATE_IN_PAST_24_48, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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 18:00:43 -0000 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? 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."