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 ?
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.