This is the mail archive of the
mailing list for the GCC project.
Re: [patch libgcc]: Adjust cygming-crtbegin code to use weak
- From: Dave Korn <dave dot korn dot cygwin at gmail dot com>
- To: Kai Tietz <ktietz70 at googlemail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 09 Apr 2013 18:33:12 +0100
- Subject: Re: [patch libgcc]: Adjust cygming-crtbegin code to use weak
- References: <CAEwic4Y5mMhokud4T-ZtA3GAHeWiQsGXfq=goo-2fj9Qm3GHSA at mail dot gmail dot com> <5163AE0B dot 6050200 at gmail dot com> <CAEwic4Ygb2F28RmLR3mE9BbPK5PEaYYPQyYpBGOzbZ4SY80MFA at mail dot gmail dot com>
On 09/04/2013 11:37, Kai Tietz wrote:
> Hmm, well in standard-case you are right. But well there is still a
> chance that GetProcAddress returns NULL-pointer ...
How would that actually happen? Removing any of those functions from libgcc
or libjava would be a very serious ABI breakage; we're never going to do that.
(And even if we do, the version number of the DLL would have to change and
LoadLibrary wouldn't return anything, unless we changed the shared lib string,
which would be the appropriate time to re-add a check.) It's not critical,
but it's wasted code.