From: Maciej W. Rozycki Date: Thu, 23 Jul 2026 18:57:07 +0000 (+0100) Subject: LD/testsuite: Remove $LDFLAGS reference from `run_ld_link_tests' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90c0cb3e4f346c293a73eb0917f1b4683239fee7;p=thirdparty%2Fbinutils-gdb.git LD/testsuite: Remove $LDFLAGS reference from `run_ld_link_tests' Fix commit 24602a75d128 ("ld: Append LDFLAGS to flags variable in default_ld_link") and prevent $LDFLAGS from being included twice in LD invocations made via `run_ld_link_tests', effectively reverting that part of commit 740341b9be65 ("Provide dummy libraries for alpha-vms"). --- diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index 5da81424cb5..25722d86f52 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -511,7 +511,6 @@ proc ar_simple_create { ar aropts target objects } { # proc run_ld_link_tests { ldtests args } { global ld - global LDFLAGS global as global nm global ar @@ -524,7 +523,7 @@ proc run_ld_link_tests { ldtests args } { global runtests global exec_output - set ld_extra_opt $LDFLAGS + set ld_extra_opt "" if [check_relro_support] { append ld_extra_opt " -z norelro" }