2023-09-11 11:56 AM
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 ?
Solved! Go to Solution.
2023-09-11 12:18 PM - edited 2023-09-11 12:19 PM
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
2023-09-11 12:18 PM - edited 2023-09-11 12:19 PM
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
2023-09-11 12:41 PM
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 ?
2023-09-11 12:54 PM
2023-09-12 12:17 AM
I have read this but looking for official information if there is any.