This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

linker remakr

Other Parts Discussed in Thread: TEST2

What does this linker remark mean?

remark #10191-D:
   object ".printf" is not allocated, but is being placed as part of allocated
   object "GROUP_2"

I'm using DSP/BIOS 5.41.11.38

with tools version 4.3.9

compiled for generic C55xx Device

I seem to recall getting the remark even before I added a secondary hand written linker command file. Here's part of it:

SECTIONS {
    /* lines omitted */

    GROUP {
    /* lines omitted */
        .const: block(0x20000) {}
        .printf (COPY): {}
     /* lines omitted */
    } > SDRAM PAGE 0
}

Here's part of my .tcf script

utils.loadPlatform("ti.platforms.evm5509A");


/* The following DSP/BIOS Features are enabled.  */
bios.enableRealTimeAnalysis(prog);
bios.enableRtdx(prog);
bios.enableTskManager(prog);
// lines omitted

// !GRAPHICAL_CONFIG_TOOL_SCRIPT_INSERT_POINT!

prog.gen();

  • Hi John --

    Can you please try removing this .printf section from your secondary linker .cmd file?   I'm pretty sure that this gets added by BIOS to the primary .cmd file.  And having this section in both must be causing some problem.   If that doesn't help, can you please make a small example and zip it up and attach it to this forum? 

    Thanks,
    -Karl-

  •  If I remove the .printf section from the secondary linker .cmd file I get

    warning #10247-D: creating output section ".printf" without a SECTIONS
       specification

    You are correct that by default tconf generates a .printf section in the primary .cmd file, but because I have modified the .tcf script to tconf, there is no .printf section in the generated primary .cmd file. I copied part of the primary .cmd file to the secondary .cmd file, then set

    bios.MEM.USERCOMMANDFILE = 1;

    and reran tconf

    After doing that there is no .printf section in the generated.cmd file.

    My first attempt to create a small example has failed. If you have no further comment I'll reopen this discussion when I have more time to put into the example.

  • It turns out to be trivially easy to reproduce this: just turn on remarks in a default DSP/BIOS C55x project, in other words:

    With eclipse Version: 5.1.0.09000 and with the TI 4.3.9 compiler installed

    create new CCS Project
        check Compiler version  TI v4.3.9
    create new DSP/BIOS Configuration
        choose ti.platforms.evm5509A
        close graphical editor
        Do you wish to enable RTSC support etc.
            yes
    Open the new project's build options from project explorer
        C5500 Compiler
            Diagnostic options  Issue remarks  tick
            Runtime Model Options  Specify memory model  large
        C5500 Linker
            File Search Path  Include library file etc.  "libc.a"  delete
    Build the project

    Should get:

    "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.9/bin/cl55" -g --display_error_number --issue_remarks --diag_warning=225 --ptrdiff_size=16 --memory_model=large -z -m"test2.map" --warn_sections -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.9/lib" -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.9/include" -i"C:/ti/bios_5_41_11_38/packages/ti/rtdx/lib/c5500" -i"C:/ti/bios_5_41_11_38/packages/ti/bios/lib" --reread_libs --rom_model -o "test2.out" -l"./test2cfg.cmd"  "./test2cfg_c.obj" "./test2cfg.obj" "./main.obj"
    <Linking>
    "./test2cfg.cmd", line 251: remark #10191-D: object ".printf" is not allocated,
       but is being placed as part of allocated object "GROUP_1"

    Should I take this to the DSP/BIOS forum?

  • John Fisher said:

    Should I take this to the DSP/BIOS forum?

    Sorry, I meant should I take it to the TI compiler forum?