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.

Compiler/DRA745: vsdk: generate symbol error

Part Number: DRA745

Tool/software: TI C/C++ Compiler

I want to generate a struct. than link to a special section.

Do as below:

struct my_resource_table{
int a;
int b;

};

#pragma DATA_SECTION(ti_ipc_remoteproc_ResourceTable, ".resource_table")
struct my_resource_table ti_ipc_remoteproc_ResourceTable = {
2,3

};

add link: --retain=.resource_table

cmd file add: .resource_table: {} > RESOURCE  type = NOINIT

This can be found in obj file, but not found in map file.

obj log as below:

ubntu18:~/workspace_v9/m4/Debug$ readelf -S m4.obj | grep resour
[ 4] .resource_table PROGBITS 00000000 000064 000004 00 WA 0 0 2

ubntu18:~/workspace_v9/m4/Debug$ cat m4.map | grep res

We can found .resource_table in vsdk m4 image, So I need to add the .resource_table in my map file. Need your help to check why can not find .resource_table in map file. and how to add .resource_table in map file?

Widic

  • Hi Widic,

    You can retain the unused symbols by using --retain option.

    The same is done to retain API SblIPU1Core1Init by TDA3x SBL.

    Please refer to PROCESSOR_SDK_VISION_03_07_00_00\ti_components\drivers\pdk_01_10_03_07\packages\ti\boot\sbl_auto\sbl_app\src\tda3xx\makefile.

    Regards,

    Rishabh

  • Hi,

    I haven't heard back from you, I'm assuming you were able to resolve your issue.
    If not, just post a reply below (or create a new thread if the thread has locked due to time-out).

    Regards,
    Rishabh