[Bug target/57982] GetModuleHandle in __register_frame_info causes abort on unload

2015-02-27 Thread ktietz at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57982

--- Comment #3 from Kai Tietz ktietz at gcc dot gnu.org ---
The problem here is the use of weak on pe-coff.  The change you see on gcc is
just addressing the fact that for 64-bit the weak symbol never can get 0 due
relocation-limitations.
We try to address this.
On the other hand we have here to work-a-round a binutils quirk that
default-implementation of a weak is used in its definition TU always, even if a
none-weak symbol is present in a different TU.  This can be worked-a-round by
moving default-implementation into different TU.

Hope this answered some of your questions.

(anyway IMHO, in general we should have used here a variant without any
weak-symbol)


[Bug target/57982] GetModuleHandle in __register_frame_info causes abort on unload

2015-02-26 Thread jpflori at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57982

Jean-Pierre Flori jpflori at gmail dot com changed:

   What|Removed |Added

 CC||jpflori at gmail dot com

--- Comment #2 from Jean-Pierre Flori jpflori at gmail dot com ---
(In reply to Kai Tietz from comment #1)
 Ups, this bug didn't shown up in my search-list ...
 Issue fixed for 4.7, 4.8, and trunk at rev 204635-204637.

I recently stumbled on a similar problem again with a recent Cygwin/GCC
combination.
Looking at the fix included in GCC, it does look slightly different from what
was first suggested here.

Could someone more knowledgeable than me have a look and tell whether the
included fix is fine or incomplete?
If incomplete, I'll be happy to open a new bug report.

See here for my report on cygwin's mailing-list:
https://cygwin.com/ml/cygwin-apps/2015-01/msg00062.html


[Bug target/57982] GetModuleHandle in __register_frame_info causes abort on unload

2013-11-10 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57982

Kai Tietz ktietz at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||ktietz at gcc dot gnu.org
 Resolution|--- |FIXED

--- Comment #1 from Kai Tietz ktietz at gcc dot gnu.org ---
Ups, this bug didn't shown up in my search-list ...
Issue fixed for 4.7, 4.8, and trunk at rev 204635-204637.


[Bug target/57982] GetModuleHandle in __register_frame_info causes abort on unload

2013-08-24 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57982

Andrew Pinski pinskia at gcc dot gnu.org changed:

   What|Removed |Added

 Target||i686-*-mingw32
   ||i686-*-cygwin
  Component|libgcc  |target
   Severity|major   |normal