summaryrefslogtreecommitdiff
blob: fe6da952842d2286d5f02e4f21307cc79dad0cc9 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
From d826b80fe902aefd77465be3650ab2d62af5e099 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= <dilfridge@gentoo.org>
Date: Sat, 31 Jul 2021 01:18:18 +0200
Subject: [PATCH 6/7] Gentoo: XFAIL 15 broken ld.gold tests

It seems like either the tests or ld.gold in general cannot handle
compilers built with --enable-default-pie. No fix yet, so let's ignore
these test failures for the moment. For details see the linked bugs.

Bug: https://bugs.gentoo.org/684046
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=22755
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=27303
---
 gold/testsuite/Makefile.am |  6 ++++++
 gold/testsuite/Makefile.in | 16 ++++++++++++----
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am
index 2f1348fd6e2..1206460f191 100644
--- a/gold/testsuite/Makefile.am
+++ b/gold/testsuite/Makefile.am
@@ -1,5 +1,11 @@
 # Process this file with automake to generate Makefile.in
 
+# Gentoo, https://bugs.gentoo.org/684046
+XFAIL_TESTS = exception_separate_shared_12_test exception_separate_shared_21_test \
+	weak_undef_test initpri3a justsyms_exec script_test_2 script_test_1 \
+	justsyms binary_test script_test_3 tls_phdrs_script_test script_test_12i \
+	dynamic_list_2 incremental_test_2 incremental_test_5
+
 # As far as I can tell automake testing support assumes that the build
 # system and the host system are the same.  So these tests will not
 # work when building with a cross-compiler.
diff --git a/gold/testsuite/Makefile.in b/gold/testsuite/Makefile.in
index 9cf21df8d7d..df14333c558 100644
--- a/gold/testsuite/Makefile.in
+++ b/gold/testsuite/Makefile.in
@@ -15,10 +15,6 @@
 @SET_MAKE@
 
 # Process this file with automake to generate Makefile.in
-
-# As far as I can tell automake testing support assumes that the build
-# system and the host system are the same.  So these tests will not
-# work when building with a cross-compiler.
 VPATH = @srcdir@
 am__is_gnu_make = { \
   if test -z '$(MAKELEVEL)'; then \
@@ -94,6 +90,14 @@ POST_UNINSTALL = :
 build_triplet = @build@
 host_triplet = @host@
 target_triplet = @target@
+XFAIL_TESTS = exception_separate_shared_12_test$(EXEEXT) \
+	exception_separate_shared_21_test$(EXEEXT) \
+	weak_undef_test$(EXEEXT) initpri3a$(EXEEXT) \
+	justsyms_exec$(EXEEXT) script_test_2$(EXEEXT) \
+	script_test_1$(EXEEXT) justsyms$(EXEEXT) binary_test$(EXEEXT) \
+	script_test_3$(EXEEXT) tls_phdrs_script_test$(EXEEXT) \
+	script_test_12i$(EXEEXT) dynamic_list_2$(EXEEXT) \
+	incremental_test_2$(EXEEXT) incremental_test_5$(EXEEXT)
 check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \
 	$(am__EXEEXT_4) $(am__EXEEXT_5) $(am__EXEEXT_6) \
 	$(am__EXEEXT_7) $(am__EXEEXT_8) $(am__EXEEXT_9) \
@@ -2782,6 +2786,10 @@ top_srcdir = @top_srcdir@
 zlibdir = @zlibdir@
 zlibinc = @zlibinc@
 
+# As far as I can tell automake testing support assumes that the build
+# system and the host system are the same.  So these tests will not
+# work when building with a cross-compiler.
+
 # Ignore warning about AM_PROG_CC_C_O due to large_CFLAGS
 AUTOMAKE_OPTIONS = foreign -Wno-portability
 
-- 
2.44.2