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.

rts55x.lib vectors.obj

Hi,

I'm programming a mixed c and asm project. Interrupts are handled purely in assemby with a directly coded interrupt vectort table, IVP pointer setup ... all works fine.

Since I'm also using c for the main program and house keeping, the rts55x.lib is automatic included. This generates the rts55x.lib : vectors.obj (space set a side for an additional interrupt vector table) which I will not use. Is there a way I can prevent this object from being created or excluded from linking ?

Cheers 

  • The linker command file is responsible for pulling in that section.  It will only do so if your linker command file has the option "-u _Reset", which causes _Reset to be an undefined symbol requiring a definition, which means that the linker must find a definition somewhere.  In order to make sure your vectors are pulled in and not the RTS library's version, you must either:

    1. Make sure the symbol "_Reset" is defined in your vector table module, or
    2. Adjust the linker command file so that it has "-u _YourDirectlyCodedIVT" and not "-u _Reset"
  • Thanks,

    I made a .global label _Reset (can be anywhere in the code, I think) and no vector.obj is included.

    It seems like _Reset MUST be defined in my code to avoid the rts lib version.

    No need for any -u declarations.

     

    Cheers