This patch changes check_weak_available to report that pdp11 does not support 
"weak".  A number of test case failures are caused by attempts to use weak 
support which is missing in the pdp11 flavor of a.out.

I'm not sure if this is covered by target maintainer authority so I figure it's 
best to ask for approval.

Ok for trunk?

        paul

testsuite/ChangeLog:

2018-11-19  Paul Koning  <n...@arrl.net>

        * lib/target-supports.exp (check_weak_available): Return "no" for
        pdp11.

Index: lib/target-supports.exp
===================================================================
--- lib/target-supports.exp     (revision 266288)
+++ lib/target-supports.exp     (working copy)
@@ -314,6 +314,12 @@ proc check_weak_available { } {
        return 1
     }
 
+    # pdp11 doesn't support it
+
+    if { [istarget pdp11*-*-*] } {
+       return 0
+    }
+
     # ELF and ECOFF support it. a.out does with gas/gld but may also with
     # other linkers, so we should try it
 

Reply via email to