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.

Address relocation problem

Hi all

I am working on H264 decoder in ccs simulator, I facing follwing problems

1. when i run the decoder as a executable its working fine, but i created a *l64P library and call the functions from application program its giving follwing errors.

          '.text' of input file 'D:\\APPlication\\Trail\\Debug\\APP_pjt.obj'.
             The 23-bit relocated address 0x4d86b6 is too large to encode in
            the 15-bit field. You may need to add a mask to the assembly
            instruction or use other target specific assembly features if you
            really only need the lowest 15 bits of this symbol. Please see the
            section on Relocation in the Assembly User's Guide.  

Previously i eliminated this errors by removing the .asm code . but now i dont know the exact problem?

2.How to share(access)  the variables b/w two projects(Dependent projects)

 To make the lib as XDAIS complaince i replaced global vars as XXX_XX_var , what should i do for maintaing the common variable b/w application and lib.  

Thanks in advance

sureshkumar

  • sureshkumar said:
    1. when i run the decoder as a executable its working fine, but i created a *l64P library and call the functions from application program its giving follwing errors.

              '.text' of input file 'D:\\APPlication\\Trail\\Debug\\APP_pjt.obj'.
                 The 23-bit relocated address 0x4d86b6 is too large to encode in
                the 15-bit field. You may need to add a mask to the assembly
                instruction or use other target specific assembly features if you
                really only need the lowest 15 bits of this symbol. Please see the
                section on Relocation in the Assembly User's Guide.  

    Previously i eliminated this errors by removing the .asm code . but now i dont know the exact problem?

     

    This particular issue has been coming up a lot recently, I believe this wiki article will help give you a better idea of what the error means as well as providing some suggestions to resolve the issue.

    sureshkumar said:
    2.How to share(access)  the variables b/w two projects(Dependent projects)

     To make the lib as XDAIS complaince i replaced global vars as XXX_XX_var , what should i do for maintaing the common variable b/w application and lib.  

    The XDAIS compliant library should only be accessed through the XDAIS functions, it should not have common global variables with the application, this allows it to be portable between many application environments.

  •  Thank you Bernie Thompson. The problem is sort out by studying the wiki artical.