summaryrefslogtreecommitdiff
path: root/system/binutils/vers-tests-eabi.patch
blob: 2ce59cee2053409151de9522979dcbd25d8213f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
By default, the vers4 tests use `sed` to look for `Version` lines.

The problem is, on 32-bit ARM targets we have Version5 EABI.  This causes
the tests to fail, like so:

    objdump --private-headers tmpdir/vers4b | sed -n /Version/,\$p > tmpdir/objdump.out
    private flags = 0x5000400: [Version5 EABI] [hard-float ABI]
    
    objdump_emptyverstuff: did not expect any output from objdump
    FAIL: vers4b

Take 'private flags' lines out of the output to fix this.

Upstream-URL: https://sourceware.org/bugzilla/show_bug.cgi?id=30924

--- binutils-2.41/ld/testsuite/ld-elfvers/vers.exp.old	2023-09-30 21:51:47.304868575 -0500
+++ binutils-2.41/ld/testsuite/ld-elfvers/vers.exp	2023-09-30 21:52:49.738253244 -0500
@@ -215,11 +215,14 @@
 # this probably means that there is version information in libc, so we
 # can't really perform this test.
 	return 1
+    } else { if { [string match "*Version? EABI*" $exec_output] } then {
+# there is EABI Version information in the private flags of the binary.
+	return 1
     } else {
 	verbose -log "$exec_output"
 	verbose -log "objdump_emptyverstuff: did not expect any output from objdump"
 	return 0
-    } }
+    } } }
 
 }