[PATCH] ld: Limit PR ld/25617 tests to glibc targets

H.J. Lu hjl.tools@gmail.com
Thu Jul 17 12:37:50 GMT 2025


Since PR ld/25617 tests expects glibc specific features, limit PR ld/25617
tests to glibc targets.

	PR ld/33169
	* testsuite/ld-elf/no-section-header.exp: Return if not glibc
	targets.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
---
 ld/testsuite/ld-elf/no-section-header.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ld/testsuite/ld-elf/no-section-header.exp b/ld/testsuite/ld-elf/no-section-header.exp
index 2a4575baf9c..7461fddc47b 100644
--- a/ld/testsuite/ld-elf/no-section-header.exp
+++ b/ld/testsuite/ld-elf/no-section-header.exp
@@ -21,7 +21,7 @@
 # Written by H.J. Lu (hongjiu.lu@intel.com)
 #
 
-if { ![is_elf_format] } {
+if { ![istarget *-*-gnu*] } {
     return
 }
 
-- 
2.50.1



More information about the Binutils mailing list