From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id TkfuCyaaj2l+xzkAWB0awg (envelope-from ) for ; Fri, 13 Feb 2026 16:39:50 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=K7ccl31C; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=i1e99vGP; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=K7ccl31C; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=i1e99vGP; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 162001E08D; Fri, 13 Feb 2026 16:39:50 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id CD4811E08D for ; Fri, 13 Feb 2026 16:39:48 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 92DC44BAD14E for ; Fri, 13 Feb 2026 21:39:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 92DC44BAD14E Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=K7ccl31C; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=i1e99vGP; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=K7ccl31C; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=i1e99vGP Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) by sourceware.org (Postfix) with ESMTPS id 1CBF84B9DB70 for ; Fri, 13 Feb 2026 21:39:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1CBF84B9DB70 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1CBF84B9DB70 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771018758; cv=none; b=FvHew30zpRwVCvVqbFHP0pfP4Lv7QCf2OL/mC1cdAWUpd9GDJJr9Dui3TBB3qLudQUlOme8zNgeO3b3FG68H39WMlnRNRKTmnSo7y4jlZVVxzw58h5CD6otB8N3fcjVD/lm2vgXPF5YKETPM3ag5fjeBCgkdue37rLXn8/JFUgU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771018758; c=relaxed/simple; bh=xIcw/IXPzLXeASAOyHEG7gu1INIEdLJ6TCifacxTUTM=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=Qylq2hCL6pEPrFRZV1ca4jzO6JTXhivq7umQ75MfNnzPUZXZiB9d2oeNfgcDAqeA17vRa/cGzalBYVR70pl5h375cHD7WlxS/2XfteiE3mgx+kpbrptYcgJ+0NDeH6nDhPQp3qDXknZcCXdbTXNDMsgU17fk8XDHRhhs5ZShjpg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1CBF84B9DB70 Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 0943C3E84B for ; Fri, 13 Feb 2026 21:39:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1771018757; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fYRepBBnZt8b5ZkErsbPIvNf02vZGWh+Xs/zbLsoBhA=; b=K7ccl31CerhSjOYkShYu94Mnx3zlV0sKpgU6HLg5v5kER9u/49NLpIWEvBeyABZfKwnLaa P2q04v1aNC8x+JEl9EE8XI5OwbKEsLUYuJdYsyVw1grvMLBiAz6wZ57UH4mg9/gcXY7HAn JniyvC7dTHJJTlP1267Fh4PfxrBJ86k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1771018757; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fYRepBBnZt8b5ZkErsbPIvNf02vZGWh+Xs/zbLsoBhA=; b=i1e99vGPvTw4m9EW0OafHaV03gzs7qGVtlu6X+fM1Tft+hSU5aXcAqlJSvcM9OrYZp9EAb tAqyX3latZZA8cDg== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=K7ccl31C; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=i1e99vGP DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1771018757; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fYRepBBnZt8b5ZkErsbPIvNf02vZGWh+Xs/zbLsoBhA=; b=K7ccl31CerhSjOYkShYu94Mnx3zlV0sKpgU6HLg5v5kER9u/49NLpIWEvBeyABZfKwnLaa P2q04v1aNC8x+JEl9EE8XI5OwbKEsLUYuJdYsyVw1grvMLBiAz6wZ57UH4mg9/gcXY7HAn JniyvC7dTHJJTlP1267Fh4PfxrBJ86k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1771018757; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fYRepBBnZt8b5ZkErsbPIvNf02vZGWh+Xs/zbLsoBhA=; b=i1e99vGPvTw4m9EW0OafHaV03gzs7qGVtlu6X+fM1Tft+hSU5aXcAqlJSvcM9OrYZp9EAb tAqyX3latZZA8cDg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id D86A93EA62 for ; Fri, 13 Feb 2026 21:39:16 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id ZY+7MgSaj2m6TwAAD6G6ig (envelope-from ) for ; Fri, 13 Feb 2026 21:39:16 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [PATCH] [gdb/testsuite] Add boards/aslr.exp Date: Fri, 13 Feb 2026 22:39:16 +0100 Message-ID: <20260213213916.800093-1-tdevries@suse.de> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-3.01 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; FROM_EQ_ENVFROM(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,suse.de:mid]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCVD_TLS_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Action: no action X-Rspamd-Queue-Id: 0943C3E84B X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Commit deb47060b58 ("gdb/testsuite: make gdb.dwarf2/dw2-empty-inline-ranges.exp work when ASLR can't be disabled") notes that test-case gdb.dwarf2/dw2-empty-inline-ranges.exp fails in case the test-case: - produces a PIE executable, and - is run in a setup that ignores disable-randomization == on (such as in a container where that capability is removed). The commit fixes the test-case using nopie, but I wondered if there were more test-cases that fail in the same way, so I ran the testsuite using: - target board unix/-fPIE/-pie, and - a patch that added -iex "set disable-randomization off" to INTERNAL_GDBFLAGS, and indeed there are. Add a boards file aslr.exp with this setup. Tested on x86_64-linux. --- gdb/testsuite/boards/aslr.exp | 26 ++++++++++++++++++++++++++ gdb/testsuite/make-check-all.sh | 1 + 2 files changed, 27 insertions(+) create mode 100644 gdb/testsuite/boards/aslr.exp diff --git a/gdb/testsuite/boards/aslr.exp b/gdb/testsuite/boards/aslr.exp new file mode 100644 index 00000000000..5e00230b301 --- /dev/null +++ b/gdb/testsuite/boards/aslr.exp @@ -0,0 +1,26 @@ +# Copyright 2026 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +load_board_description "local-board" + +# Simulate a setup that ignores the default disable-randomization == on (such +# as a container where that capability is removed). +append GDBFLAGS { -iex "set disable-randomization off"} + +# Try to generate PIE executables to catch the cases that having address +# randomization in executables matters. +# It would be nice to use "pie" (as handled by gdb_compile) here, but that +# doesn't seem to work. +process_multilib_options "-fPIE -pie" diff --git a/gdb/testsuite/make-check-all.sh b/gdb/testsuite/make-check-all.sh index c46cd8de4ed..a5190bd64ff 100755 --- a/gdb/testsuite/make-check-all.sh +++ b/gdb/testsuite/make-check-all.sh @@ -66,6 +66,7 @@ host_target_boards=( # Boards that run everything on local target and local host. target_boards=( + aslr cc-with-gdb-index cc-with-index-cache cc-with-debug-names base-commit: 51b7445c65ff06a6d9740fc635be73287527a0a5 -- 2.51.0