-T option

Ian Lance Taylor iant@google.com
Fri Sep 8 20:42:00 GMT 2006


Michael Eager <eager@eagercon.com> writes:

> GCC accepts the -T<script> command line option and
> passes this to the linker as -T<script>, as well as
> suppressing any passing the linker the default linker script.
> 
> Unfortunately, -T <script> gets passed to the assembler.
> 
> The option doesn't appear in the GCC docs or in gcc -help.
> I also can't locate where the gcc driver is processing the
> -T option.
> 
> Is the missing documentation an oversight or is the option
> deprecated or something else?

"-T arg" is passed to the assembler because of ASM_SPEC in
gcc/config/svr4.h.  The %{T} has been there since svr4.h was added
back in 1992.

I have no idea what -T means to the SVR4 assembler.

Ian



More information about the Gcc mailing list