Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8892249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:57:06+00:00 2026-06-14T22:57:06+00:00

I use Visual Studio 2008 and have a question regarding this warning. In one

  • 0

I use Visual Studio 2008 and have a question regarding this warning.

In one of our libraries, we set the “Fixed Base address” flag (/FIXED) and have a fixed base address defined.

We declare a shared section with the commands

#pragma comment(linker,"/SECTION:FOO,RWS") 
#pragma data_seg("FOO")

When I remove the /FIXED flag I get the warning

LINK : warning LNK4092: shared writable section ‘FOO’ contains relocations; image may not run correctly

I understand, that with this flag, the dll might be relocated, when loading from an executable.
Now what I don’t understand. Why is it important, that these shared sections are not relocated? Are those addresses not virtual for each process?

Is there any way to allow relocations and have a shared section? We had a problem with this after we changed the library interface and I want to avoid this in the future, if any developer changes this library without knowledge of these consequences.

I am also curious how this works. The MSDNA page for the /SECTION flag and the 4092 warning are not very helpful here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T22:57:08+00:00Added an answer on June 14, 2026 at 10:57 pm

    I believe KB137235 is relevant here. Basically the error is telling you that the section contains data that depends on the address the section is loaded at, such as a pointer to other data in the section. If the section is relocatable, different instances might not be at the same virtual address, so the pointer can’t be valid for all of them simultaneously.

    In the medium-to-long term, the correct solution is to not use a shared section. See, for example:

    • Appendix G: SDL Requirement: No Shared Sections
    • The Old New Thing: Why .shared sections are a security hole
    • KB147136: Problem with Shared Data Sections in DLLs
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question concerning the class generation in Visual Studio 2008. I use
I have just begun to use Visual Studio Team System 2008 Database Edition. I'm
I use Visual studio 2008 I have 5 listbox's on form,I created a new
I use EF for Visual Studio 2008, so I don't have POCO integration with
I have a solution in Visual Studio 2008 with 3 projects. One Web Application
A very basic question. I have just installed Visual Studio 2008 Express Edition and
I know about this question: Which (third-party) debug visualizers for Visual Studio 2005/2008 do
i use visual studio 2008, and i chose a .cpp in visual c++ at
I use Visual Studio 2008 and it really makes me crazy how it shows
1) I use Visual Studio 2008 (C#) 2) I want my desktop application to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.