VladisM/MARK_II

Linker

VladisM opened this issue · 3 comments

There is bug in linker somewhere. In one file I have

.IMPORT main
CALL    main

in second file

.EXPORT main
main: 

linker is not able to deal with this properly.

It's look like imported labels are not marked for relocation.

bug.tar.gz
These are files to reproduce bug. Compile it by typing make. In final ldm file should be second line set to True. This last column control relocation for loaders.

Fixed. Hope I didn't destroy anything else. It is pretty old code.