The MASM Forum Archive 2004 to 2012

Specialised Projects => Pelle's Macro Assembler Development => Topic started by: hutch-- on May 28, 2008, 01:00:59 PM

Title: POLINK question on /MERGE
Post by: hutch-- on May 28, 2008, 01:00:59 PM
I have been using POLINK for years and I am very pleased with its performance but I have a warning that I have never worked out how to shut it up.

from the use of the /MERGE:.data=.text I always get the warning,


POLINK: warning: Multiple '.text' sections found with different flags (0xe0000020 and 0xc0000080)


The exe always runs OK but I canot find a setting that either sets the flags or at least shuts the warning up apart from "> nul" which does not display the link output.

Does anyone know how to fix this ?
Title: Re: POLINK question on /MERGE
Post by: Ehtyar on May 29, 2008, 07:54:16 AM
The warning is of course the result of merging a read-execute section with a read-write section. The linker will, to prevent this being a problem, make the resultant section read-write-execute and  emit a warning. Unfortunately, Pelle decided not to include an ignore switch, as is found in the Microsoft compilers/linkers, in polink as he believes this type of  warning is the only kind that will be frequently encountered. A post on the PellesC forum to this effect can be found here (http://forum.pellesc.de/index.php?topic=2152.msg8055#msg8055).

Ehtyar.

P.S. I apologize for my post in that thread alluding otherwise, I obviously did not check my facts at the time.