https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61752

--- Comment #1 from jon.turney at dronecode dot org.uk ---
Created attachment 33092
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33092&action=edit
Patch to cygming-crtbegin.c to prevent libgcc pinning itself in memory

This seems to be caused by the fix for pr 57982, to fix a different abort
during __gcc_deregister_frame()

Since that change is baked into libgcc itself, that patch has the side-effect
of making libgcc pin itself in memory.

I can't really tell from what's written there if that was deliberate or not,
but it seems that it introduces a different problem when the executable doesn't
have a dependency on libgcc.

Attached is a patch which modifies __gcc_register_frame() to avoid it pinning
itself in memory.

Alternatively, as [1] says, the assert in __deregister_frame_info_bases()
itself could be removed. 

[1] http://www.mail-archive.com/gcc@gcc.gnu.org/msg68286.html

Reply via email to