|
From: fiveight <fiv...@to...> - 2007-04-26 15:36:26
|
----- Original Message -----
From: "Keith MARSHALL" <kei...@to...>
To: "MinGW Users List" <min...@li...>
Sent: Thursday, April 26, 2007 4:24 PM
Subject: Re: [Mingw-users] How can I set my own image base?
> fiveight wrote:
>> I run this command:
>>
>> gcc.exe -v -shared -nostdlib --disable-auto-image-base ...
>>
>> Why ld.exe still have the --enable-auto-image-base option.
>
> It is defined in the specs file, to be applied for every invocation
> of the linker.
>
>> How can I set my own image base?
>
> If you want to disable auto-image-base, you will need to modify
> the specs file. (WARNING: messing this up can break your compiler
> in interesting ways).
>
Thanks for your help! I modified the specs file, I delete the
"%{shared|mdll: -e _DllMainCRTStartup@12 --enable-auto-image-base}" option
in the "*link:" section. After doing this, I can link my project normally. I
can understand what your warning means, I will add "-e
_DllMainCRTStartup@12 --enable-auto-image-base" option manually in the
command line when I build a win32 dll. Am I right? Or any good suggestion
you can give me?
BTW, where can I find the manual about the specs file used by MinGW.
Thanks!
>> And ../gcc-3.4.5/configure dir puzzles me, I can not find this dir
>> on my disk, why?
>
> It's the *command* used to invoke the configure script, when building
> GCC from source. You will only find this, if you download a source
> package, from which to *build* GCC.
>
> Regards,
> Keith.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> MinGW-users mailing list
> Min...@li...
>
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
>
|