tests: use canonical option name

Message ID c52dbd16-7e1b-c356-7a92-1ff089564ef7@suse.cz
State Accepted
Headers
Series tests: use canonical option name |

Checks

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

Commit Message

Martin Liška Oct. 26, 2022, 8:47 a.m. UTC
  Noticed that while running a test-suite with mold linker:
https://sourceware.org/bugzilla/show_bug.cgi?id=29722

Apparently, it's a legal option value for bfd, but for compatibility issues,
I would like to use the canonical option name.

Ready for master?

Thanks,
Martin

ld/ChangeLog:

	* testsuite/ld-size/size.exp: Use canonical option name.
---
 ld/testsuite/ld-size/size.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Alan Modra Oct. 27, 2022, 1:02 a.m. UTC | #1
On Wed, Oct 26, 2022 at 10:47:09AM +0200, Martin Liška wrote:
> 	* testsuite/ld-size/size.exp: Use canonical option name.

OK.
  

Patch

diff --git a/ld/testsuite/ld-size/size.exp b/ld/testsuite/ld-size/size.exp
index 063809b04cb..e15962886cd 100644
--- a/ld/testsuite/ld-size/size.exp
+++ b/ld/testsuite/ld-size/size.exp
@@ -274,7 +274,7 @@  run_ld_link_exec_tests [list \
     ] \
     [list \
 	"Run size-8" \
-	"$NOPIE_LDFLAGS -Wl,--no-as-needed,--hash-styl=gnu,-z,notext \
+	"$NOPIE_LDFLAGS -Wl,--no-as-needed,--hash-style=gnu,-z,notext \
 	 tmpdir/libsize-8.so" \
 	"" \
 	{size-8a.c} \