470,826 Members | 1,916 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,826 developers. It's quick & easy.

LNK9038 SAFESEH warning,

Hi,

Iam linking my C++ project with some external libraries and getting the
following error:

someLib.lib(omeObj.obj) : LNK9038: module unsafe for SAFESEH image.
I do not have exception handling turned on in my main project (no /GX /Eh
options).

What is wrong?

Matej
Jul 21 '06 #1
1 2865
"Matej Trampus" <ma***********@online.nospamwrote
>
Iam linking my C++ project with some external libraries and getting the
following error:

someLib.lib(omeObj.obj) : LNK9038: module unsafe for SAFESEH image.
I do not have exception handling turned on in my main project (no /GX /Eh
options).
/SAFESEH generates a table of exception handlers for structured exception
handling in the image. SEH is a different from C++ exception handling
(the latter is built on top of SEH). SEH is also about things like processor
exceptions such as access violations etc.

The table is suppossed to be minimize attacks hijacking the exception
handler list. The OS (IIRC it's a W2K3+ feature) will no longer dispatch
to a handler which is not listed in the image's SAFESEH table.

I don't think there's a lot you can do short of removing /SAFESEH from
the linker command line.

-hg
Jul 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Roger Orr | last post: by
3 posts views Thread by Bill Burris | last post: by
1 post views Thread by spanov | last post: by
reply views Thread by Rohini | last post: by
92 posts views Thread by Heinrich Pumpernickel | last post: by
reply views Thread by sathish74 | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.