CW 5.02 for powerPC - sections

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW 5.02 for powerPC - sections

1,282 Views
AndrewLohmann
Contributor I
Hi


I have a linker file created for my projects. I wish to know which sections should be copied to ROM. At the present time all sections including .data and .bss are copied to ROM. Here is copy of my map output file, all of the sections below are copied to flash. The sections I need are .header .text and I guess some others for initialised variables.

 .header  00020000 00000048 00000120
            .text  00020100 00016ec8 00000170
          .rodata  00036fc8 00000340 00017038
            extab  00037308 00000000 00017378
       extabindex  00037308 00000000 00017378
            .data  00037308 00004748 00017378
           .sdata  0003ba50 00000184 0001bac0
            .sbss  0003bbd8 000000dc 0001bc48
          .sdata2  0003bcb4 00000000 0001bc48
           .sbss2  0003bcb4 00000000 0001bc48
             .bss  0003bcb8 0000c5d4 0001bc48
  .PPC.EMB.sdata0  0004828c 00000000 0001bc48
   .PPC.EMB.sbss0  0004828c 00000000 0001bc48


Labels (1)
0 Kudos
2 Replies

313 Views
J2MEJediMaster
Specialist I
Check this forum topic for an explanation of the purposes of these sections.

This forum topic summarizes the function of various sections. While this information might be for other MCUs, the information on sections is still relevant to your tools.

HTH,

---Tom


Message Edited by J2MEJediMaster on 2007-08-17 09:18 AM
0 Kudos

313 Views
AndrewLohmann
Contributor I
Thanks Tom, that helps, and I have asked a question. Andrew
0 Kudos