Hello. I cannot link to an object file produced from the following code:
format ms coff
section '.bss' data readable writeable
public buffer as '_buffer'
buffer rb 32768
Microsoft linker says:
foo.obj
foo.obj : fatal error LNK1107: invalid or corrupt file: cannot read at 0x8000
dumpbin says:
SECTION HEADER #1
.bss name
0 physical address
0 virtual address
8000 size of raw data
0 file pointer to raw data
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
C03000C0 flags
Initialized Data <--
Uninitialized Data
4 byte align
Read Write
It links without errors when I remove IMAGE_SCN_CNT_INITIALIZED_DATA from section flags.