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

Any compiler option to remove runtime library __rt_lib_init option

Note: This was originally posted on 7th August 2009 at http://forums.arm.com

During my program execution I'm facing an undefined exception in runtime library [__rt_lib_init]. Without run time library it works fine.  Suggest some compiler option to remove this part from my program execution. I'm working on 9E-S target board.

I think also any compiler or linker switch to remove particular symbol also helpful.

Cheers:)
  • Note: This was originally posted on 7th October 2009 at http://forums.arm.com

    Even i am facing a similar issue. It goes to prefetch abort. Can anybody explain the reason for this ?

    I solved it by adding the following code:

                    EXPORT  __rt_lib_init
                    IMPORT  main
    __rt_lib_init
                    LDR     R0, =main
                    BX      R0

    But why should i get prefetch abort if i call __rt_lib_init ?

    Note:
           The arm core being used here is ARM7TDMI-S (no cache).

    Thanks in advance,
    Gopu.S
  • Note: This was originally posted on 11th August 2009 at http://forums.arm.com

    providing main as application entry point, forces the linker to include the C library initialisation function. provide linker a different entry point using --entry linker option.
    refer DUI 0349B document which has more information.