Is someone on this project looking into the .rdata issue?

Oct 3, 2012 at 12:53 AM

This seems to be an issue:

Nov 30, 2012 at 10:28 PM

I'm using VS2012 and ran into the same issue.  If you compare atlbase.h to an eariler version, such as VS2005, you'll see that these sections were changed from "read, shared" to "read".

In the ATLServer source you'll see the same sections in atlisapi.h and atlpref.h.  I changed them to the following

#pragma section("ATLP$A", read, shared)
#pragma section("ATLP$Z", read, shared)
#pragma section("ATLP$C", read, shared)

#pragma section("ATLP$A", read)
#pragma section("ATLP$Z", read)
#pragma section("ATLP$C", read)

This eliminated the compiler warning and there seems to be no unwanted side-effects. 


Mar 18 at 6:26 AM
If you apply this change don't forget to re-build. Otherwise your linker will emit a warning that it found two sections with different attributes.