3.7. ARM Profiling Implementation

Profiling is enabled by means of the -pg compiler option. In this mode, the compiler inserts a call to __gnu_mcount_nc into every function prologue. However, no implementation of __gnu_mcount_nc is provided (to do so would be impossible without knowledge of the execution environment).

You must provide your own implementation of __gnu_mcount_nc . Here are the requirements: