diff options
author | Tom Tromey <tromey@adacore.com> | 2025-02-03 12:12:29 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2025-02-04 10:32:08 -0700 |
commit | 8cfa1fc43e17c6c225afd7016b7e4e741e7e1ad7 (patch) | |
tree | 008345c8b5234bf4ff54ec27e0dda0f1bf6dea22 | |
parent | 45576ca2a8f9e3cb266f1d90256f337104b621ed (diff) | |
download | binutils-8cfa1fc43e17c6c225afd7016b7e4e741e7e1ad7.zip binutils-8cfa1fc43e17c6c225afd7016b7e4e741e7e1ad7.tar.gz binutils-8cfa1fc43e17c6c225afd7016b7e4e741e7e1ad7.tar.bz2 |
Reorder gnatmake arguments in inline-section-gc.exp
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.
-rw-r--r-- | gdb/testsuite/gdb.ada/inline-section-gc.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.ada/inline-section-gc.exp b/gdb/testsuite/gdb.ada/inline-section-gc.exp index e1d85f5..55cd156 100644 --- a/gdb/testsuite/gdb.ada/inline-section-gc.exp +++ b/gdb/testsuite/gdb.ada/inline-section-gc.exp @@ -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 |