https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0ee02b2c4d04170e0e68ea...
commit 0ee02b2c4d04170e0e68eae538da871f47680ddd Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Sun Jan 13 01:32:38 2019 +0100 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Sun Jan 27 00:51:00 2019 +0100
[SDK/INCLUDE] Fix the .code16 macro definition for MASM/ML.
Modify the .code16 macro so that the 16-bit code segment can get a chance to be correctly merged with other (possibly 32-bit) code segments, without keeping generating multiple .text segments with different attributes and generating the corresponding LNK4078 warning.
This fixes the warning when compiling NTOSKRNL on MSVC: "v86.S.obj : warning LNK4078: multiple '.text' sections found with different attributes (C0520040)". --- sdk/include/asm/asm.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/include/asm/asm.inc b/sdk/include/asm/asm.inc index f8bc9126e1..7612815607 100644 --- a/sdk/include/asm/asm.inc +++ b/sdk/include/asm/asm.inc @@ -100,7 +100,7 @@ ENDM
.code16 MACRO ASSUME nothing - .text SEGMENT use16 + .text SEGMENT use16 PUBLIC 'CODE' .586P ENDM