mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-23 13:21:43 +08:00
gdb/testsuite/
Fix false FAIL on distros with relro linkage as default. * gdb.reverse/solib-precsave.exp: Try to compile the test using -Wl,-z,norelro first.
This commit is contained in:
parent
f4a23d427d
commit
51898c1516
@ -1,3 +1,9 @@
|
||||
2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
Fix false FAIL on distros with relro linkage as default.
|
||||
* gdb.reverse/solib-precsave.exp: Try to compile the test using
|
||||
-Wl,-z,norelro first.
|
||||
|
||||
2012-03-06 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* gdb.ada/bp_on_var: New testcase.
|
||||
|
@ -39,7 +39,13 @@ if { [gdb_compile_shlib ${srcdir}/${subdir}/${libsrc} ${library} "debug"] != ""
|
||||
|
||||
set exec_opts [list debug shlib=${library}]
|
||||
|
||||
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opts] != "" } {
|
||||
# Attempt to prevent -Wl,-z,relro which may happen by default with some
|
||||
# toolchain configurations. Due to PR corefiles/11804 GDB will then produce
|
||||
# invalid core file.
|
||||
|
||||
if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable \
|
||||
[concat $exec_opts additional_flags=-Wl,-z,norelro]] != ""
|
||||
&& [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opts] != "" } {
|
||||
untested "Could not compile $binfile."
|
||||
return -1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user