How to get GCC linker command? -
How can I use GCC to open the LD?
I have a problem AVR target where the GCC apparently added a linker option which I am attempting to override, so I want to see the exact options of GCC use for LC.
Use GCC-V
to use it. As it is,
GCC-V-o hello Hello
This will print a lot of output including the linker command. The actual output depends on the platform, but the linking command must be near the end. Alternatively,
GCC - ### -o Hello Hello.
It is similar to -v
, but does not actually run any command and option quotes.
Another option
gcc-dumpspecs
link
.
The above command line flags are listed in the GCC --Hop
and explained on the man page. Here it is.
Comments
Post a Comment