mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 04:02:08 +02:00
- don't write the default unit code section in the beginning of each asm file,
when using {$hugecode on}, to avoid bogus nasm warnings git-svn-id: trunk@27623 -
This commit is contained in:
parent
8a606761cd
commit
efb3cfcbc7
@ -1216,7 +1216,8 @@ interface
|
||||
internalerror(2013050101);
|
||||
end;
|
||||
|
||||
AsmWriteLn('SECTION ' + CodeSectionName(current_module.modulename^) + ' use16 class=code');
|
||||
if not (cs_huge_code in current_settings.moduleswitches) then
|
||||
AsmWriteLn('SECTION ' + CodeSectionName(current_module.modulename^) + ' use16 class=code');
|
||||
{ NASM complains if you put a missing section in the GROUP directive, so }
|
||||
{ we add empty declarations to make sure they exist, even if empty }
|
||||
AsmWriteLn('SECTION .rodata');
|
||||
@ -1236,7 +1237,8 @@ interface
|
||||
AsmWriteLn('SECTION .debug_line use32 class=DWARF');
|
||||
AsmWriteLn('SECTION .debug_abbrev use32 class=DWARF');
|
||||
end;
|
||||
AsmWriteLn('SECTION ' + CodeSectionName(current_module.modulename^));
|
||||
if not (cs_huge_code in current_settings.moduleswitches) then
|
||||
AsmWriteLn('SECTION ' + CodeSectionName(current_module.modulename^));
|
||||
{$else i8086}
|
||||
{$ifdef i386}
|
||||
AsmWriteLn('BITS 32');
|
||||
|
Loading…
Reference in New Issue
Block a user