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.

28xx compiler/linker questions

Is there any way to do either of the following?

1) as a compiler command-line option, declare the default section name (".text" is the default)

2) as a linker command-file option, move all the standard library functions into a particular section

  • Jason R Sachs said:
    1) as a compiler command-line option, declare the default section name (".text" is the default)

    No.  But in the linker command file you can do something like this ...

    my_section_name_here { *(.text) } > MEMORY_RANGE

    Jason R Sachs said:
    2) as a linker command-file option, move all the standard library functions into a particular section

    Yes.  See the section titled Specifying Library or Archive Members as Input to Output Sections in the C28x Assembly Tools User's Guide.  Also note this error correction pertaining to that section.

    Thanks and regards,

    -George