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