سؤال

I have a statically linked executable compiled from a C program. objdump -x a.out indicates the presence of the .eh_frame section, even after strip -s. Why is this section useful in a C (non-C++) program? What are the risks of stripping it (with strip -R .eh_frame)?

هل كانت مفيدة؟

المحلول

From remyabel's comment and OP's confirmation, the answer to the OP question is available via another SO question as linked by:

Why GCC compiled C program needs .eh_frame section?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top