]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Reorder gnatmake arguments in inline-section-gc.exp
authorTom Tromey <tromey@adacore.com>
Mon, 3 Feb 2025 19:12:29 +0000 (12:12 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 4 Feb 2025 17:32:08 +0000 (10:32 -0700)
inline-section-gc.exp ends up passing "-lm" to gnatmake as an "marg"
-- meaning gnatmake should process it itself.  However, the gnat-llvm
gnatmake does not know what to do with this, so the test fails.

This patch rearranges the arguments so that the (implicit) trailing
-lm ends up being passed through to the linker.

gdb/testsuite/gdb.ada/inline-section-gc.exp

index e1d85f580c1f8378e00ff6949b46f8b6188d24b0..55cd156b1f7ec8567b1bdc558ae329a3ac71fdd0 100644 (file)
@@ -23,10 +23,10 @@ set options {
     debug
     optimize=-O2
     additional_flags=-ffunction-sections
-    ldflags=-largs
-    ldflags=-Wl,--gc-sections
     ldflags=-margs
     additional_flags=-gnatn
+    ldflags=-largs
+    ldflags=-Wl,--gc-sections
 }
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $options] != ""} {
     return -1