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.
+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
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