any idea of how can i detect if a section is empty?
specificaly i would like to generate data and code sections when the preprocesor finds _TEXT _DATA and _BSS macros but not to gerate a section
if this macros are not folowed by data or code like:
_BSS segment dword public use32 'BSS'
align 4
smgnlfeia label dword
db 128 dup(?)
this will be expanded to:
section '.bss' readable writeable
align 4
smgnlfeia: db 128 dup(?)
but this:
_BSS segment dword public use32 'BSS'
_BSS ends
will be ignored.
I'm working in an include file that will make asm files (generated by the borland freecommandline C compiler) "assemblyables" by fasm
I allready have assembled some files but i want to remove the empty sections.
thanks.