This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Changing default memory segments


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 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]