aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/testsuite')
-rw-r--r--binutils/testsuite/lib/binutils-common.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp
index 88fdc1a..93603b0 100644
--- a/binutils/testsuite/lib/binutils-common.exp
+++ b/binutils/testsuite/lib/binutils-common.exp
@@ -427,6 +427,16 @@ proc supports_persistent_section {} {
return 0;
}
+# Whether a target support DT_RELR sections.
+proc supports_dt_relr {} {
+ if { ([istarget x86_64-*-*] || [istarget i?86-*-*])
+ && ([istarget *-*-linux*]
+ || [istarget *-*-gnu*]) } {
+ return 1
+ }
+ return 0
+}
+
# Compare two files line-by-line. FILE_1 is the actual output and FILE_2
# is the expected output. Ignore blank lines in either file.
#