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.

CCS/TMS320F2812: #10068-D no matching section warning

Part Number: TMS320F2812

Tool/software: Code Composer Studio

Hi,

I'm trying to fix a function call to a specific address, but using the follwing in my linker cmd file

some_name_section : {
	some_object.obj (_some_function_name)
} > 0x3F4FBA, PAGE = 0

From my map file i get

some_name_section
*          0    003f4fba    0000000b     
                003f4fba    0000000b     some_object.obj (some_name_section)
GLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name 

page  address   name                                        
----  -------   ----                                        
abs   ffffffff  .text 
.
.
.

0     003f4fba  _some_function_name
.
.
.


GLOBAL SYMBOLS: SORTED BY Symbol Address 

page  address   name      
page  address   name                                        
----  -------   ----                                        
0     00008000  _other_function_name
.
.
.
0     003f4fba  _some_function_name
.
.
.

Yet i still get the #10068 no matchign section warning.


What am i missing my linker setup?

  • It is easier to compile with the option --gen_func_subsections, then write this entry in the linker command file ...

       .text:_some_function_name > 0x3f4fba, page = 0

    This creates an output section named .text:_some_function_name.  It is made up of all the input sections with the same name.  In this case, there is one such input section.  It is created by the compiler when you compile a function named some_function_name with the option --gen_func_subsections.  It is allocated to a hard-coded address.

    For others who come across this thread later ... If you build for EABI, which the default or only ABI for all TI compilers except C28x, then the better solution is to use #pragma LOCATION.

    For more details, please search the C28x compiler manual for the options or pragmas shown in this post.

    Thanks and regards,

    -George