aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorDimitar Dimitrov <dimitar@dinux.eu>2021-05-10 14:00:00 +0100
committerNick Clifton <nickc@redhat.com>2021-05-10 14:00:00 +0100
commit5b45e89f56db79fc22ecbb1657eff8ef39fc2c5f (patch)
tree615c47ed75ce7f0fc1057af369573119703388ab /ld/testsuite
parent261980de18b895d270dc7876d22b706db696e669 (diff)
downloadgdb-5b45e89f56db79fc22ecbb1657eff8ef39fc2c5f.zip
gdb-5b45e89f56db79fc22ecbb1657eff8ef39fc2c5f.tar.gz
gdb-5b45e89f56db79fc22ecbb1657eff8ef39fc2c5f.tar.bz2
Enable linker garbage collection for the PRU target.
bfd * elf32-pru.c (elf_backend_can_gc_sections): Define as 1. ld * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list. * testsuite/ld-elf/group8b.d: Ditto. * testsuite/ld-elf/group9a.d: Ditto. * testsuite/ld-elf/group9b.d: Ditto. * testsuite/ld-elf/pr12851.d: Ditto. * testsuite/ld-elf/pr22677.d: Ditto. * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove pru from list.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-elf/group8a.d2
-rw-r--r--ld/testsuite/ld-elf/group8b.d2
-rw-r--r--ld/testsuite/ld-elf/group9a.d2
-rw-r--r--ld/testsuite/ld-elf/group9b.d2
-rw-r--r--ld/testsuite/ld-elf/pr12851.d2
-rw-r--r--ld/testsuite/ld-elf/pr22677.d2
-rw-r--r--ld/testsuite/lib/ld-lib.exp1
7 files changed, 6 insertions, 7 deletions
diff --git a/ld/testsuite/ld-elf/group8a.d b/ld/testsuite/ld-elf/group8a.d
index 59043b2..96cab9e 100644
--- a/ld/testsuite/ld-elf/group8a.d
+++ b/ld/testsuite/ld-elf/group8a.d
@@ -2,7 +2,7 @@
#ld: -r --gc-sections --entry foo
#readelf: -g --wide
# generic linker targets don't support --gc-sections, nor do a bunch of others
-#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* pru-*-*
+#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-*
COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains . sections:
\[Index\] Name
diff --git a/ld/testsuite/ld-elf/group8b.d b/ld/testsuite/ld-elf/group8b.d
index 7de82ef..8ff5b97 100644
--- a/ld/testsuite/ld-elf/group8b.d
+++ b/ld/testsuite/ld-elf/group8b.d
@@ -2,7 +2,7 @@
#ld: -r --gc-sections --entry bar
#readelf: -g --wide
# generic linker targets don't support --gc-sections, nor do a bunch of others
-#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* pru-*-*
+#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-*
COMDAT group section \[[ 0-9]+\] `.group' \[bar\] contains . sections:
\[Index\] Name
diff --git a/ld/testsuite/ld-elf/group9a.d b/ld/testsuite/ld-elf/group9a.d
index d2ec10c..a44e75b 100644
--- a/ld/testsuite/ld-elf/group9a.d
+++ b/ld/testsuite/ld-elf/group9a.d
@@ -2,7 +2,7 @@
#ld: -r --gc-sections --entry foo
#readelf: -g --wide
# generic linker targets don't support --gc-sections, nor do a bunch of others
-#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* pru-*-*
+#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-*
COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains . sections:
\[Index\] Name
diff --git a/ld/testsuite/ld-elf/group9b.d b/ld/testsuite/ld-elf/group9b.d
index df7f576..0007ebe 100644
--- a/ld/testsuite/ld-elf/group9b.d
+++ b/ld/testsuite/ld-elf/group9b.d
@@ -2,7 +2,7 @@
#ld: -r --gc-sections --entry bar
#readelf: -g --wide
# generic linker targets don't support --gc-sections, nor do a bunch of others
-#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* pru-*-*
+#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-*
COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains . sections:
\[Index\] Name
diff --git a/ld/testsuite/ld-elf/pr12851.d b/ld/testsuite/ld-elf/pr12851.d
index fe75caf..8b88f03 100644
--- a/ld/testsuite/ld-elf/pr12851.d
+++ b/ld/testsuite/ld-elf/pr12851.d
@@ -2,7 +2,7 @@
#source: start.s
#ld: --gc-sections
#readelf: -s --wide
-#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* pru-*-*
+#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-*
# generic linker targets don't support --gc-sections, nor do a bunch of others
#...
diff --git a/ld/testsuite/ld-elf/pr22677.d b/ld/testsuite/ld-elf/pr22677.d
index 49af52a..e229f85 100644
--- a/ld/testsuite/ld-elf/pr22677.d
+++ b/ld/testsuite/ld-elf/pr22677.d
@@ -2,7 +2,7 @@
#readelf: -S --wide
# generic linker targets don't support --gc-sections, nor do a bunch of
# others.
-#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* pru-*-*
+#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-*
#...
\[[ 0-9]+\] \.preinit_array\.01000[ \t]+PREINIT_ARRAY[ \t0-9a-f]+WA?.*
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index b108088..8fd14af 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -1090,7 +1090,6 @@ proc check_gc_sections_available { } {
|| [istarget mep-*-*]
|| [istarget mn10200-*-*]
|| [istarget pj*-*-*]
- || [istarget pru*-*-*]
|| [istarget s12z-*-*]
|| [istarget xgate-*-*]
|| [istarget z80-*-*] } {