Changes between Version 3 and Version 4 of GCI/Coding/AddPerSectionSupportToBSPs


Ignore:
Timestamp:
01/06/16 16:40:03 (7 years ago)
Author:
Gedare Bloom
Comment:

Add info about KEEP directives in linkcmds.

Legend:

Unmodified
Added
Removed
Modified
  • GCI/Coding/AddPerSectionSupportToBSPs

    v3 v4  
    2121This is also a BSP Family with multiple BSP variants. The sis.cfg file includes erc32.cfg so editing one file impacts both BSPs.
    2222
     23With these options turned on, the linker script needs to be tailored to avoid removing any sections that are not referenced directly but need to be kept in the linked executable by adding the
     24{{{
     25KEEP
     26}}}
     27macro to such sections. See for example c/src/lib/libbsp/sparc/shared/startup/linkcmds.base which has already been tailored.
     28
    2329== Task Requirements ==
    2430
     
    2632The task requires you to:
    2733
    28 Build a toolset for the CPU architecture per the instruction in the Hello World task. You likely did this for sparc/sis. In that case, sparc was the eCPU and sis was the BSP.
     34Build a toolset for the CPU architecture per the instruction in the Hello World task. You likely did this for sparc/sis. In that case, sparc was the CPU and sis was the BSP.
    2935
    3036Be prepared to generate a proper patch for your changes.
     
    4147
    4248Edit one or more .cfg and .inc files to add the appropriate options to CFLAGS_OPTIMIZE_V and LDFLAGS as shown in the previous section.
     49
     50Edit one or more linkcmds files located within either c/src/lib/libbsp/CPU/BSP/startup/ or c/src/lib/libbsp/CPU/shared/startup to add the KEEP directives.
    4351
    4452Rebuild the BSP variants in the BSP Family and again note the size. If there is no reduction, something is not right. If the reduction is near 100%, then something is not right.