Prev Previous Post   Next Post Next

LNK4078 multiple ".rdata" sections found with different attributes

Posted: 09-03-2004, 03:19 PM
I have seen the various newsgroup responses on "my code now generates
LNK4078" that range from "rebuild all your code under the latest
Microsoft compiler and linker" to "just ignore it". The question I
have is slightly more specific than that.

In the Windows XP DDK, MSVCRT.LIB (July 2001) includes a linker
directive of "/MERGE:.CRT=.rdata". The CRT sections appear to all be
flagged read/write, while every other .rdata section I can find for
the other DDK .LIBs, plus the .LIBs and .OBJs of my own code, are all
read-only.

The MSVCRT.LIB from Visual Studio 6.0 SP6 (circa 2000) and earlier,
and the MSVCRT.LIB from Visual Studio .NET 2003 (March 2003) have this
linker directive as "/MERGE:.CRT=.data". The CRT sections still
appear to be flagged read/write, but so are the other .LIB/.OBJ .data
sections.

(For what it's worth this IS the source of my LNK4078; simply
switching to an MSVCRT.LIB which doesn't try to merge .CRT into .rdata
eliminates the error, without un-using any of the other XP DDK LIBs
I'm linking against.)

My question is simply one of whether anyone knows the functional
reason why the MSVCRT.LIB from the XP DDK used "/MERGE:.CRT=.rdata",
so that I might understand the intention when considering what
resolution steps to take.

Thanks for your time.
Reply With Quote

Responses to "LNK4078 multiple ".rdata" sections found with different attributes"

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
DMX Xfire 1024 - "File Not Found" error during driver install Nathan Windows Vista Hardware & Devices 1 06-20-2006 11:01 AM
DMX Xfire 1024 Sound Card - get a "file not found" error Nathan Windows Vista Hardware & Devices 0 06-14-2006 10:34 PM
TD Error: 1004: Invalid resource: "<File(819):"%17%","machine.inf">": Juergen Striegel Windows XP Embedded 2 11-28-2003 12:20 PM
Folder/File Attributes - Can't undo "Read Only" amanda Windows XP Performance & Maintenance 1 08-02-2003 03:04 PM
XP Home Edition tells me at every startup "found new printer" Leon Windows XP Hardware 0 06-30-2003 12:55 PM