This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Linker scripts
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Michael Eager <eager at eagercon dot com>
- Cc: GCC <gcc at gcc dot gnu dot org>
- Date: Wed, 06 Sep 2006 19:22:48 -0700
- Subject: Re: Linker scripts
- References: <44FF4511.3000107@eagercon.com>
On Wed, 2006-09-06 at 15:00 -0700, Michael Eager wrote:
> GCC passes a linker script to the linker for some
> targets (e.g., powerpc-eabi with -mads). If you specify a
> linker script using -Wl,-T,script.ld, you get both
> passed to the linker and there may be conflicts.
>
> Is there any option to GCC which says to not pass
> the predefined linker script to the linker?
sysv4.h has "%{!Wl,-T*: %{!T*: %(link_start) }}" which should mean don't
do link_start (which contains the -T for -mads) when supplying -T or
-Wl,-T. Now is it really working is different story.
Thanks,
Andrew Pinski