[PATCH] Enable Windows --auto-image-base to take an argument

Christopher Faylor cgf-use-the-mailinglist-please@sourceware.org
Tue Mar 18 15:06:00 GMT 2014


On Tue, Mar 18, 2014 at 11:16:14AM +1030, Alan Modra wrote:
>On Mon, Mar 17, 2014 at 01:40:53PM -0400, Christopher Faylor wrote:
>> +static unsigned long pe_auto_image_base = 0x61500000;
>[snip]
>> -  return 0x61300000 + ((hash << 16) & 0x0FFC0000);
>> +  return pe_auto_image_base + ((hash << 16) & 0x0FFC0000);
>
>Was the magic number (613 to 615) change deliberate or is this a typo?

It was deliberate.  That is actually an address which is supposed to
follow the Cygwin DLL but the DLL has grown large enough that a bump
was required.

cgf



More information about the Binutils mailing list