From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 681123858D32 for ; Thu, 13 Jul 2023 13:41:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 681123858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 53D8C21FB5; Thu, 13 Jul 2023 13:41:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689255691; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qx3BUSMan4QCfV15uUhaJ1fHOyfRrwYZhTHqCoHHX4k=; b=ljHyapMj0sWOzGFiTfko4kQxdeW3Zp+ktTCMvMt/RMRpf3C/iJnVY+fZZBaekzkTrRrxPc o6sJXEkct3JrvumdgIz7cq/GDyuljDcM13awdHKMH5rlJeiYxWdhw/8eVJ78F2EdYBRZtx Ht1aSg1OazIdPpxr9sVnReLuiNdnbv4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689255691; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qx3BUSMan4QCfV15uUhaJ1fHOyfRrwYZhTHqCoHHX4k=; b=ZuKF72yEwW81Qqb+nXMBZdO1VZOpPAU6C1yTiZvXDK5SVHGdY7kWkikP7ToZpYCbUCBAf7 z6t0zAcsdslwI8Aw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 3F82A13489; Thu, 13 Jul 2023 13:41:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id v1zgDQv/r2RxUgAAMHmgww (envelope-from ); Thu, 13 Jul 2023 13:41:31 +0000 Message-ID: <7717248b-b2e9-c44d-f7c7-a3dd102236b4@suse.de> Date: Thu, 13 Jul 2023 15:41:26 +0200 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: en-US From: Tom de Vries To: Simon Marchi , gdb-patches@sourceware.org References: <20230617103023.32722-1-tdevries@suse.de> <20230617103023.32722-2-tdevries@suse.de> <05ed8f29-d3aa-280e-158a-8b9b8f2447fc@simark.ca> <88473fd2-ef80-7f7b-d283-b78bfc848a58@suse.de> In-Reply-To: <88473fd2-ef80-7f7b-d283-b78bfc848a58@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 7/12/23 17:01, Tom de Vries wrote: > On 7/1/23 04:55, Simon Marchi wrote: >> 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: >> > > Hi Simon, > > thanks for reporting this. > > Is this is with a specific target board? I've managed to reproduce this now, filed as https://sourceware.org/bugzilla/show_bug.cgi?id=30633 . Thanks, - Tom >>      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 >