|
From: fiveight <fiv...@to...> - 2007-04-27 14:46:16
|
----- Original Message -----
From: "Brian Dessent" <br...@de...>
To: "MinGW Users List" <min...@li...>
Cc: "Keith MARSHALL" <kei...@to...>
Sent: Thursday, April 26, 2007 11:41 PM
Subject: Re: [Mingw-users] How can I set my own image base?
> fiveight wrote:
>
>> 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?
>
> There should be no need to modify the specs file. Options given later
> on the command line override earilier ones, so just use
> -Wl,--image-base=x or -Wl,--disable-auto-image-base and so on. The ones
> in the specs file will be the first on the command line to the linker so
> you should be able to override them at will.
>
> Brian
Yeah, you are right, Brian. Thanks. I have restored the specs file, and I
can link my project normally.
BTW, where can I find the manual about the specs file used by MinGW ?
fiveight
>
> -------------------------------------------------------------------------
> 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
>
|