Re: Linker scripts

2006-09-10 Thread Segher Boessenkool
specified must be, as you say, close enough to the standard script that things will work correctly. In the real world, linker scripts may be generated automatically to describe the memory layout of a board or processor. There is no compelling reason to prohibit this *correct* linker script from be

Re: Linker scripts

2006-09-10 Thread Daniel Jacobowitz
be conflicts. > > > >Is there any option to GCC which says to not pass > >the predefined linker script to the linker? > > 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

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 l

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

Re: Linker scripts

2006-09-10 Thread Michael Eager
predefined linker script to the linker? 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 l

Re: Linker scripts

2006-09-10 Thread Segher Boessenkool
linker? 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... Segher

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

Linker scripts

2006-09-06 Thread Michael Eager
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