AnsweredAssumed Answered

Splitting Short Word Code Segment from DXE File

Question asked by rmchale on Apr 14, 2011
Latest reply on Apr 18, 2011 by BarbaraZ

I am trying to split the short word code segent from my DXE file, although the two incarnations of the splitter command line that make sense to use are not producing the expected result.

 

LDF File defintions:

 

MEMORY {
   
    // Block 2
    seg_sw_code   { TYPE(SW RAM) START(0x1800A0) END(0x187FFF) WIDTH(16) }

 

}

 

PROCESSOR p0
{  
    SECTIONS {
        .seg_rth {
            INPUT_SECTIONS($OBJECTS(seg_rth) $LIBRARIES(seg_rth))
        } >seg_rth
       
        .seg_init PM
        {
            ldf_seginit_space = . ;
            INPUT_SECTIONS( $OBJECTS(seg_init) $LIBRARIES(seg_init))
        } > seg_sw_code
       
        .seg_int_code_sw SW
        {
            FILL(0x1)
            NO_FORCE_CONTIGUITY
            INPUT_SECTIONS( $OBJECTS(seg_int_code_sw) $LIBRARIES(seg_int_code_sw))
            INPUT_SECTIONS( $OBJECTS(seg_int_code) $LIBRARIES(seg_int_code))
        } > seg_sw_code
       
        .seg_swco SW
        {
            FILL(0x1)
            NO_FORCE_CONTIGUITY
            INPUT_SECTIONS( $OBJECTS(seg_swco) $LIBRARIES(seg_swco))
            INPUT_SECTIONS( $OBJECTS(seg_pmco) $LIBRARIES(seg_pmco))
        } > seg_sw_code
       
        .seg_pmco PM
        {
            INPUT_SECTIONS( $OBJECTS(seg_pmco) $LIBRARIES(seg_pmco))
        } > seg_sw_code
       
    }
}

 

Splitter Command line options:

 

“-f B -pm -ram     -o seg_code.stk file.dxe”, I would have exepcted this command to extract all code segments, both seg_swco and seg_pmco. In the generated .stk file I am only finding records for Normal Word Code segments (seg_pmco).

 

“-f B -s .seg_swco -o seg_swco.stk file.dxe”, based on my understanding of the splitter command line options I would have expected this to spliit out the .seg_swco segment, instead I receive the error "[Error sp0024]: Section not defined ".seg_swco""

 

How does one go about splitting out short word code segments from a DXE file using the VisulaDSP++ splitter utility?

Outcomes