From: Peter Johnson Date: Mon, 12 Feb 2007 08:27:02 +0000 (-0000) Subject: Enable .pdata and .xdata special handling only for win64, not for win32 X-Git-Tag: v0.6.0~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a298bfa83bc8891ec08efd68c69b7f5cd9aa71b6;p=yasm Enable .pdata and .xdata special handling only for win64, not for win32 and win64. svn path=/trunk/yasm/; revision=1763 --- diff --git a/modules/objfmts/coff/coff-objfmt.c b/modules/objfmts/coff/coff-objfmt.c index 6c2ae9ba..395f6752 100644 --- a/modules/objfmts/coff/coff-objfmt.c +++ b/modules/objfmts/coff/coff-objfmt.c @@ -1413,11 +1413,11 @@ coff_objfmt_section_switch(yasm_objfmt *objfmt, yasm_valparamhead *valparams, flags = COFF_STYP_INFO; if (objfmt_coff->win32) flags |= COFF_STYP_DISCARD | COFF_STYP_READ; - } else if (objfmt_coff->win32 && strcmp(sectname, ".pdata") == 0) { + } else if (objfmt_coff->win64 && strcmp(sectname, ".pdata") == 0) { flags = COFF_STYP_DATA | COFF_STYP_READ; align = 4; flags2 = COFF_FLAG_NOBASE; - } else if (objfmt_coff->win32 && strcmp(sectname, ".xdata") == 0) { + } else if (objfmt_coff->win64 && strcmp(sectname, ".xdata") == 0) { flags = COFF_STYP_DATA | COFF_STYP_READ; align = 8; } else if (strcmp(sectname, ".comment") == 0) {