https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95720

Torbjörn SVENSSON <torbjorn.svensson at foss dot st.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |torbjorn.svensson at foss dot 
st.c
                   |                            |om

--- Comment #16 from Torbjörn SVENSSON <torbjorn.svensson at foss dot st.com> 
---
I think this ticket should be reopened as the change broke how linker scripts
are handled in dejagnu.
If your board file have the following statement:

set_board_info ldscript "-T /path/to/foo.ld"

Then, the commands will be issued like this:

spawn -ignore SIGHUP .../build-native/gcc-final/gcc/xgcc
-B.../build-native/gcc-final/gcc/ linker_plugin9341.c -mthumb -march=armv6s-m
-mcpu=cortex-m0 -mfloat-abi=soft -fdiagnostics-plain-output -dumpbase  -flto
-fuse-linker-plugin -Wl,--start-group -lc -lm -Wl,--end-group
--specs=nosys.specs -Wl,--allow-multiple-definition -Wl,-u,_isatty,-u,_fstat
-Wl,-wrap,exit -Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort -Wl,gcc_tg.o -lm
-T -Wl,/path/to/foo.ld -o linker_plugin9341.exe

Note that the ldscript symbol has been replaced by "-T -Wl,/path/to/foo.ld".
According to the manual, it's correct to have a white-space between -T and the
path.

Reply via email to