public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Add comment in exec_is_pie
@ 2020-05-25 15:27 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2020-05-25 15:27 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=42cf184456fb1470835b6dccd536c2d74461e7b6
commit 42cf184456fb1470835b6dccd536c2d74461e7b6
Author: Tom de Vries <tdevries@suse.de>
Date: Mon May 25 17:27:49 2020 +0200
[gdb/testsuite] Add comment in exec_is_pie
Add comment to exec_is_pie explaining why readelf -d output is not used.
gdb/testsuite/ChangeLog:
2020-05-25 Tom de Vries <tdevries@suse.de>
* lib/gdb.exp (exec_is_pie): Add comment.
Diff:
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/lib/gdb.exp | 3 +++
2 files changed, 7 insertions(+)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 91769e8adcc..201f2684a9c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2020-05-25 Tom de Vries <tdevries@suse.de>
+
+ * lib/gdb.exp (exec_is_pie): Add comment.
+
2020-05-25 Tom de Vries <tdevries@suse.de>
* lib/jit-elf-helpers.exp (compile_and_download_n_jit_so): Use $f
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 7177be941b4..8e22941f0bc 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -5509,6 +5509,9 @@ proc exec_is_pie { executable } {
return -1
}
set readelf_program [gdb_find_readelf]
+ # We're not testing readelf -d | grep "FLAGS_1.*Flags:.*PIE"
+ # because the PIE flag is not set by all versions of gold, see PR
+ # binutils/26039.
set res [catch {exec $readelf_program -h $executable} output]
if { $res != 0 } {
return -1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-25 15:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-25 15:27 [binutils-gdb] [gdb/testsuite] Add comment in exec_is_pie Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).