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?

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

Reply via email to