scatter linking
Ian Lance Taylor
ian@wasabisystems.com
Sun Jan 18 04:22:00 GMT 2004
arwong <arwong@cisco.com> writes:
> I would like to know if the linker for the gcc compiler supports scatter
> linking,
> ie, support for multiple text and data sections. If it does, can you provide
> information on how to accomplish this for a mips processor ?
> The "Options that control linking" section of the online GCC manual does
> not touch on this subject.
The gcc project does not supply a linker. The GNU binutils projects
does. For information about the GNU binutils, including the
appropriate mailing lists, see http://sources.redhat.com/binutils/.
I'm not sure precisely what you mean by scatter linking, but the GNU
linker does support multiple text and data sections, and offers
various ways to control their placement via linker scripts. See the
GNU linker manual.
You may also be interested in the gcc options -ffunction-sections and
-fdata-sections.
Ian
More information about the Gcc-help
mailing list