From 3b36e3d0b5d87b9f281fdca7a1cca40e2108838d Mon Sep 17 00:00:00 2001 From: nickysn Date: Thu, 3 Sep 2015 13:57:36 +0000 Subject: [PATCH] * declare segments as use16 or use32 in the nasm asm writer git-svn-id: trunk@31493 - --- compiler/x86/agx86nsm.pas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/x86/agx86nsm.pas b/compiler/x86/agx86nsm.pas index ffce7acd0b..ddba05c939 100644 --- a/compiler/x86/agx86nsm.pas +++ b/compiler/x86/agx86nsm.pas @@ -557,6 +557,10 @@ interface { yes -> write the section attributes as well } if atype=sec_stack then AsmWrite(' stack'); + if atype in [sec_debug_frame,sec_debug_info,sec_debug_line,sec_debug_abbrev] then + AsmWrite(' use32') + else + AsmWrite(' use16'); AsmWrite(' class='+omf_segclass[atype]+ ' align='+tostr(omf_sectiontype2align(atype))); FSectionsUsed.Add(secname,nil);