Linker problem !!!

By Eugeny_Brychkov

Hero (603)

Eugeny_Brychkov's picture

14-12-2010, 19:59

I have broken code and data into several files, compiled by m80 separately.
I am trying to assemble the single output file from those pieces.

All files, except one, are layed out contiguously. Code is started at 4000h, and the last file I link, should have a command at the end of 7xxxh space (fixed address).

In that last file I have "org 3a00h" just before commands to be placed into fixed area. Other files do not have org statements at all.

When I link (using Digital Research "link" linker) with option [l4000] code is placed ok, but the last file is just added at the end with starting offset being an end of previous code rather than 4000h.

Anyone can propose a solution? I also tried L80, but I do not see how to request it to start code at 4000h (rahter than 0100h).

Login or register to post comments

By Eugeny_Brychkov

Hero (603)

Eugeny_Brychkov's picture

14-12-2010, 23:28

Solved.

By Manuel

Ascended (9884)

Manuel's picture

15-12-2010, 18:33

How? That would be nice to read for someone who finds this problem via GOogle...

By Eugeny_Brychkov

Hero (603)

Eugeny_Brychkov's picture

15-12-2010, 19:13

All files except last one have CSEG (by default), last one has ASEG - this makes it position 3a00h absolutely, not relatively to any code or data.

My MSX profile