[Mingw-w64-public] Slow pseudo-relocations

2014-08-15 Thread Vadim Chugunov
Hi, I am trying to figure out the cause of a slow application startup, and the evidence I have so far, points to mingw's _pei386_runtime_relocator() routine as the culprit. When I start my app under debugger, I see this function calling VirtualProtect() about a zillion times in a row. Looking

Re: [Mingw-w64-public] Slow pseudo-relocations

2014-08-15 Thread lh_mouse
E:\Desktop\mingw-w64-mingw-w64grep -nr MINGW64_VERSION_MAJOR . (... omitted ...) ./mingw-w64-headers/crt/_mingw_mac.h:14:#define __MINGW64_VERSION_MAJOR 4 -- Best regards, lh_mouse 2014-08-15

[Mingw-w64-public] [RFC] long double implementations

2014-08-15 Thread André Hentschel
Hi, To speed things up, i would like to do it as shown in the attached patch, is that ok with you? (NOTE: on ARM, double == long double) commit f80874fdd29e66bef2d28843656be84344031c39 Author: André Hentschel n...@dawncrow.de Date: Fri Aug 15 00:03:11 2014 +0200 softmath: Add acoshl diff

Re: [Mingw-w64-public] Slow pseudo-relocations

2014-08-15 Thread dw
So, it looks like what has happened is that newer OSs (ie = Vista) set the page protect to PAGE_EXECUTE_WRITECOPY when doing a LoadLibrary. This is a (relatively) new flag and apparently Mingw still assumes the old values are always in use. There are 3 places in pseudo-reloc.c that do