|
unresolved external symbol ___security_cookie求助
[复制链接]
为缩短开发周期,采用windriver9编写驱动,但是在利用winddk编译内核态函数时,提示unresolved external symbol ___security_cookie in function。
由于是用makefile和source文件进行链接的,不能利用vc来修改bufferflow的问题。
也不知道是不是栈溢出问题,好伤脑筋啊!
--------------------Configuration: KP_AFDX - Win32 winxp checked--------------------
setting enviroment for WinXP platform
call D:\WINDDK\bin\setenv.bat D:\WINDDK checked
run build -cfe for checked in
E:\AFDX_new_test\kermode
BUILD: Object root set to: ==> objchk_winxp
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: /i switch ignored
BUILD: Using 2 child processes
BUILD: Compile and Link for i386
BUILD: Loading D:\WINDDK\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Examining e:\afdx_new_test\kermode directory for files to compile.
e:\afdx_new_test\kermode
e:\afdx_new_test\kermode - 2 source files (898 lines)
BUILD: Saving D:\WINDDK\build.dat...
BUILD: Compiling e:\afdx_new_test\kermode directory
1>Compiling - afdx_lib.c for i386
1>Compiling - kp_afdx.c for i386
BUILD: Linking e:\afdx_new_test\kermode directory
1>Linking Executable - objchk_winxp\i386\kp_afdx.sys for i386
1>kp_nt921.lib(kp_main.obj) : error LNK2019: unresolved external symbol ___security_cookie referenced in function "unsigned long __stdcall WdrKP_CreateDevices(struct _DRIVER_OBJECT *,struct _UNICODE_STRING *)" (?WdrKP_CreateDevices@@YGKPAU_DRIVER_OB
JECT@@PAU_UNICODE_STRING@@@Z)
1>kp_wdapi921.lib(wdc_general.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>kp_wdapi921.lib(wdc_err.obj) : error LNK2001: unresolved external symbol ___security_cookie
1>kp_nt921.lib(kp_main.obj) : error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function "unsigned long __stdcall WdrKP_CreateDevices(struct _DRIVER_OBJECT *,struct _UNICODE_STRING *)" (?WdrKP_CreateDevices@@YGKPAU_D
RIVER_OBJECT@@PAU_UNICODE_STRING@@@Z)
1>kp_wdapi921.lib(wdc_general.obj) : error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function _WDC_Sleep@8
1>kp_wdapi921.lib(wdc_err.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
1>objchk_winxp\i386\kp_afdx.sys() : error LNK1120: 2 unresolved externals
BUILD: Done
4 files compiled
1 executable built - 7 Errors
|
|