check_gc_sections_available: Mark z80 as not supported

Message ID 20200206144144.1187918-1-hjl.tools@gmail.com
State New
Headers show
Series
  • check_gc_sections_available: Mark z80 as not supported
Related show

Commit Message

H.J. Lu Feb. 6, 2020, 2:41 p.m.
[hjl@gnu-cfl-2 tmpdir]$ ../ld-new -V --gc-sections pr22319.o
GNU ld (GNU Binutils) 2.34.50.20200206
  Supported emulations:
   elf32z80
../ld-new: warning: gc-sections option ignored
../ld-new: warning: cannot find entry symbol _start; defaulting to 0000000000000100
[hjl@gnu-cfl-2 tmpdir]$

	* testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
	z80 as not supported.
---
 ld/ChangeLog                | 5 +++++
 ld/testsuite/lib/ld-lib.exp | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

-- 
2.24.1

Patch

diff --git a/ld/ChangeLog b/ld/ChangeLog
index 29630cbab5..66a5049091 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@ 
+2020-02-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
+	z80 as not supported.
+
 2020-02-06  Alan Modra  <amodra@gmail.com>
 
 	* testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index bed5add77f..08e2d6978a 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -1062,7 +1062,8 @@  proc check_gc_sections_available { } {
 	    || [istarget pj*-*-*]
 	    || [istarget pru*-*-*]
 	    || [istarget s12z-*-*]
-	    || [istarget xgate-*-*] } {
+	    || [istarget xgate-*-*]
+	    || [istarget z80-*-*] } {
 	    set gc_sections_available_saved 0
 	    return 0
 	}