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

Removal of unused functions

Hi,

I'm using armclang compiler Product:  Professional Component: ARM Compiler 6.16 

There are unused functions which are linked in the final application. There  functions are coming from a library which is linked to final application, but not called in application.

How to remove these unused functions from final image ?

Parents
  • Hi,

    By removing --no_remove from linker,  the function 

    void __stack_chk_fail(void) got removed.

    This function is called by compiler upon stack overflow check, so there is no call in the application explicitly.

    How to prevent these functions getting removed, also exceptions, interrupt service routines won't have any callgrah.

Reply
  • Hi,

    By removing --no_remove from linker,  the function 

    void __stack_chk_fail(void) got removed.

    This function is called by compiler upon stack overflow check, so there is no call in the application explicitly.

    How to prevent these functions getting removed, also exceptions, interrupt service routines won't have any callgrah.

Children