[1/2] ld/testsuite: skip ld-elf/exclude when -shared is not supported

Message ID 20221020144351.1398099-1-chigot@adacore.com
State Accepted
Headers
Series [1/2] ld/testsuite: skip ld-elf/exclude when -shared is not supported |

Checks

Context Check Description
snail/binutils-gdb-check success Github commit url

Commit Message

Clément Chigot Oct. 20, 2022, 2:43 p.m. UTC
  ld/ChangeLog:

	* testsuite/ld-elf/exclude.exp: Call check_shared_lib_support.
	to skip for all targets without shared lib support.
---
 ld/testsuite/ld-elf/exclude.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Nick Clifton Oct. 21, 2022, 9:53 a.m. UTC | #1
Hi Clément,

> 	* testsuite/ld-elf/exclude.exp: Call check_shared_lib_support.
> 	to skip for all targets without shared lib support.

Approved - please apply.

Cheers
   Nick
  

Patch

diff --git a/ld/testsuite/ld-elf/exclude.exp b/ld/testsuite/ld-elf/exclude.exp
index 1417ee1fefc..60e41eda3a9 100644
--- a/ld/testsuite/ld-elf/exclude.exp
+++ b/ld/testsuite/ld-elf/exclude.exp
@@ -26,8 +26,8 @@  if ![is_elf_format] {
     return
 }
 
-# No shared lib support on this target.
-if { [istarget "mcore-*-*"] } {
+# Skip targets where -shared is not supported
+if { ![check_shared_lib_support] } {
     return
 }