Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
752 B

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. overflow.h
  5. Abstract:
  6. Header for use in DLLs that want to enable the buffer overrun checking
  7. compiler flag (/GS) but can't call the CRT entrypoint for some reason.
  8. This header makes sure the .CRT data, where the overrun cookie is stored,
  9. is merged into the .rdata section for the binary.
  10. Author:
  11. Jonathan Schwartz (JSchwart) 27-Nov-2001
  12. Environment:
  13. Kernel and User modes
  14. Revision History:
  15. --*/
  16. #if defined(_M_IA64)
  17. #pragma comment(linker, "/merge:.CRT=.rdata")
  18. #else
  19. #ifdef NT_BUILD
  20. #pragma comment(linker, "/merge:.CRT=.rdata")
  21. #else
  22. #pragma comment(linker, "/merge:.CRT=.data")
  23. #endif
  24. #endif