1] WinCE build tools - optionally force text and rdata to be locked. r=vlad
This commit is contained in:
Doug Turner 2009-07-16 11:32:03 -07:00
Родитель d538a197f2
Коммит f1e98cd442
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -30,6 +30,12 @@ void addLinkArgs(int k, int s, int *i, int *j, char** args, char** argv) {
args[(*i)++] = "/MAP"; args[(*i)++] = "/MAP";
args[(*i)++] = "/MAPINFO:EXPORTS"; args[(*i)++] = "/MAPINFO:EXPORTS";
if (getenv("LOCK_DLLS") != NULL) {
// lock our dlls in memory
args[(*i)++] = "/SECTION:.text,\!P";
args[(*i)++] = "/SECTION:.rdata,\!P";
}
#ifdef HAVE_SHUNT // simple test to see if we're in configure or not #ifdef HAVE_SHUNT // simple test to see if we're in configure or not
if(getenv("NO_SHUNT") == NULL) { if(getenv("NO_SHUNT") == NULL) {
args[(*i)++] = "/LIBPATH:\"" SHUNT_LIB "\""; args[(*i)++] = "/LIBPATH:\"" SHUNT_LIB "\"";