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

Oct 3, 2012 at 12:53 AM

This seems to be an issue:

 

http://social.msdn.microsoft.com/Forums/en-US/vcmfcatl/thread/4763bc2d-0e86-45e9-bfe4-ddaa735e5ad5

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

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

TO:
#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.