News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

POLINK question on /MERGE

Started by hutch--, May 28, 2008, 01:00:59 PM

Previous topic - Next topic

hutch--

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 ?
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Ehtyar

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.

Ehtyar.

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