flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > macro to detect empty sections |
Author |
|
revolution 02 Jan 2008, 01:54
In most cases an empty section tells the loader to allocate uninitialisesd memory for things like stacks (your BSS example). In a PE file this simply means one extra entry in the header of 40 bytes.
However since you want to remove the sections then I would suggest a 'section' structure (struc is a special macro that can take a label as a parameter). Then you also need an 'ends' macro which will detect the length of the section and act accordingly. |
|||
02 Jan 2008, 01:54 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.