cancel
Showing results for 
Search instead for 
Did you mean: 

eh_frame, init and fini in a C build

mete
Senior II

I see these in the linker scripts, but I do not see them in the output for a C application.

I know eh_frame is for C++ exceptions, and it is not strange it is not in the output of the C application. I also read it is used for some C functionality as well. Can these functionality be used in embedded platforms (without an OS) ? Can I ever see eh_frame in a C build output ?

I thought init and fini is only for processes and shared objects. Neither is in a C project, are these used for anything else ? 

1 ACCEPTED SOLUTION

Accepted Solutions
Issamos
Lead II

Hello @mete 

you might still encounter eh_frame sections if certain C features that require stack unwinding support bit. But, this is going to be rare.

For init and fini, I don't think they have uses other than what you said.

Best regards.

II

View solution in original post

4 REPLIES 4
Issamos
Lead II

Hello @mete 

you might still encounter eh_frame sections if certain C features that require stack unwinding support bit. But, this is going to be rare.

For init and fini, I don't think they have uses other than what you said.

Best regards.

II

Thanks @Issamos , is there a documentation about when eh_frame is used in C ? or does C standard or GNU toolchain mandate the support/inclusion of eh_frame ? 

I suggest you to take a look at this post.

Best regards.

II

I have read this but looking for official information if there is any.