On Wed, 6 Nov 2019 16:16:27 +0000 Jozef Lawrynowicz <joze...@mittosystems.com> wrote:
> The attached patch enables the EH Frame Registry to be explicitly disabled > with a configure option "-disable-eh-frame-registry", thereby removing code to > support it in crtstuff.c > > Default behaviour is unchanged since USE_EH_FRAME_REGISTRY was previously > referenced only internally in crtstuff.c, and now is only defined to 0 > when it would previously have not been defined at all. I retract this patch, since I have found a better solution to the problem this was going to solve. Passing "-U__LIBGCC_EH_FRAME_SECTION_NAME__" when building crtstuff.c objects completely removes references to .eh_frame. The original patch still resulted in the .eh_frame section being created, since code to add a 4byte NULL sentinel to the end of the section was retained. If someone thinks the original patch might still be useful, I can go ahead and commit it anyway.