From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 0153F3858D37 for ; Sat, 1 Jul 2023 02:55:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0153F3858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1688180126; bh=dd85oxcrk+1x7PPjEcgtcX6bfhYXoU6PgF8T38f5ljQ=; h=Date:Subject:To:References:From:In-Reply-To:From; b=fyKRDtGmkFy4IvxhHwjnnrqkQmnPEhgz+Od8LoCDAsiuPyq7XJZcOlXPxfhRSjSbn hESjbdfGvbG5mAHYoObEV6uNQBy83B0G7FidAwnpOegS3jpLwe7vg6CS18SLIR8A1A 1zBaD2H69lPAfjOgmPDk2vQerBOcaX82kSWnKzXQ= Received: from [10.0.0.170] (modemcable238.237-201-24.mc.videotron.ca [24.201.237.238]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 0D8651E00F; Fri, 30 Jun 2023 22:55:25 -0400 (EDT) Message-ID: <05ed8f29-d3aa-280e-158a-8b9b8f2447fc@simark.ca> Date: Fri, 30 Jun 2023 22:55:25 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 2/3] [gdb/testsuite] Add nopie in a few test-cases Content-Language: fr To: Tom de Vries , gdb-patches@sourceware.org References: <20230617103023.32722-1-tdevries@suse.de> <20230617103023.32722-2-tdevries@suse.de> From: Simon Marchi In-Reply-To: <20230617103023.32722-2-tdevries@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS,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 6/17/23 06:30, Tom de Vries via Gdb-patches wrote: > When running test-case gdb.arch/i386-disp-step.exp with target board > unix/-m32/-fPIE/-pie we run into: > ... > gdb compile failed, ld: i386-disp-step0.o: warning: relocation in read-only section `.text' > ld: warning: creating DT_TEXTREL in a PIE > ... > > Fix this by adding nopie in the compilation flags. > > Likewise in a few other test-cases. > > Tested on x86_64-linux. Hi Tom, Just to note that this causes a regression on Ubuntu 22.04. Before: target remote localhost:2346 Remote debugging using localhost:2346 Reading symbols from /lib64/ld-linux-x86-64.so.2... Reading symbols from /usr/lib/debug/.build-id/61/ef896a699bb1c2e4e231642b2e1688b2f1a61e.debug... 0x00007ffff7fe32b0 in _start () from /lib64/ld-linux-x86-64.so.2 (gdb) continue Continuing. Breakpoint 1, main () at typeddwarf.c:87 87 { After: target remote localhost:2346 Remote debugging using localhost:2346 main () at typeddwarf.c:87 87 { (gdb) continue Continuing. Program received signal SIGSEGV, Segmentation fault. 0x0000000000000001 in ?? () (gdb) FAIL: gdb.dwarf2/typeddwarf.exp: runto: run to main Simon