This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Locating

Hi all,

I am new with L166 linker on ST10 target and I just would like to :
Set a code section containing all the code of several files (file1.obj, file2.obj and file3.obj for example) and to locate them at a specific address.

I would like to set this linker/locator in a linker file _without_ including pragma directives in my source code (which is not very portable)

So, a section of code at 0x10000 for example, containing code of
file1.obj
file2.obj
file3.obj
...etc...

I can't find which directive tells that code of file1.obj, file2.obj, file3.obj,... has to be stored in MY_CODE_SECTION and MY_CODE_SECTION start address has to be 0x100000 for example...

Thank you for your precious help,

Best Regards,

Pierre

Parents
  • To be more precise, I have added this line to my linker command file :
    SECTIONS (?PR?FILE1%FCODE (0x800000))

    ...which seems to work but I wondered if there were some wildcard facilities to be able to locate a list of files with a single directive such as :

    SECTIONS (?PR?FILE_*%FCODE (0x800000))

    ... any idea for L166 ? ... I saw that BL51 could do that...

Reply
  • To be more precise, I have added this line to my linker command file :
    SECTIONS (?PR?FILE1%FCODE (0x800000))

    ...which seems to work but I wondered if there were some wildcard facilities to be able to locate a list of files with a single directive such as :

    SECTIONS (?PR?FILE_*%FCODE (0x800000))

    ... any idea for L166 ? ... I saw that BL51 could do that...

Children