This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Changing default memory segments
- To: "'binutils at sources dot redhat dot com'" <binutils at sources dot redhat dot com>
- Subject: Changing default memory segments
- From: Dainis Strupis <Dainis at fortech dot lv>
- Date: Tue, 7 Aug 2001 16:51:24 +0300
Is there any way to change the default segments used by the GCC compiler.
I am working on an embedded system with several types of ROM and RAM
Internal and External - different speeds, static Ram and DRAM, etc.)and
I am often shuffling code and data into specific memory regions for improved
performance.
I found only one way to put code (.text) segment from C files,
in differem memory locatins, by change in assembler file
or object file(if assembler file not aivailable) ".text" to .textsram".
What is right syntax for "ld" script for putting code (.text) segment from
several files to other memory region (SRAM but not DRAM) without change segment
name ?
Best regards
Dainis Strupis
dainis@saftehnika.com
p.s.
problem is actual for GCC 2.7 mips-lsi-elf