Re: Linker scripts

2006-09-10 Thread Segher Boessenkool
A linker script passed to the gcc driver should override the one which the driver would pass by default. Yes, and if current GCC has some problems with that, those bugs should be fixed. Sorry if I gave the impression that this would be "user error". The linker script which is specified mus

Re: Linker scripts

2006-09-10 Thread Daniel Jacobowitz
On Sun, Sep 10, 2006 at 10:16:29PM +0200, Segher Boessenkool 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

Re: Linker scripts

2006-09-10 Thread Michael Eager
Segher Boessenkool wrote: If you use your own linker scripts, you really shouldn't use gcc to do the linking step; call ld directly, instead. gcc has no idea what your linker script does, so it might well call ld with the wrong options... There are a number of targets which pass linker scripts

Re: Linker scripts

2006-09-10 Thread Segher Boessenkool
If you use your own linker scripts, you really shouldn't use gcc to do the linking step; call ld directly, instead. gcc has no idea what your linker script does, so it might well call ld with the wrong options... There are a number of targets which pass linker scripts to ld, along with whatever

Re: Linker scripts

2006-09-10 Thread Michael Eager
Segher Boessenkool 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 predefi

Re: Linker scripts

2006-09-10 Thread Segher Boessenkool
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 li

Re: Linker scripts

2006-09-08 Thread Michael Eager
Andrew Pinski wrote: 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

Re: Linker scripts

2006-09-06 Thread Andrew Pinski
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 t

Re: Linker scripts

2006-09-06 Thread Paul Brook
On Wednesday 06 September 2006 23:00, 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