This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -T option
- From: Ian Lance Taylor <iant at google dot com>
- To: Michael Eager <eager at eagercon dot com>
- Cc: GCC <gcc at gcc dot gnu dot org>
- Date: 08 Sep 2006 13:42:22 -0700
- Subject: Re: -T option
- References: <4501CDBA.2040300@eagercon.com>
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