This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Passing options through gcc to linker
- From: Richard Henderson <rth at redhat dot com>
- To: "D. Towner" <towner at cs dot bris dot ac dot uk>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Tue, 30 Apr 2002 13:07:04 -0700
- Subject: Re: Passing options through gcc to linker
- References: <Pine.GSO.4.33.0204301032350.18463-100000@tao>
On Tue, Apr 30, 2002 at 10:44:31AM +0100, D. Towner wrote:
> I am writing a gcc port for a new machine. I need to pass various options
> to the linker, through gcc. Up until now, I have done this using Xlinker:
>
> gcc test.c -Xlinker --set-stack-offset -Xlinker 1024
>
> This is not particularly neat...
Try -Wl,--set-stack-offset,1024 instead.
r~