public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
* ld86 link sequence
@ 2005-09-02 15:57 Hans
  0 siblings, 0 replies; only message in thread
From: Hans @ 2005-09-02 15:57 UTC (permalink / raw)
  To: linux-8086

Hi All,

If I use:

bcc -0 -ansi -Md -o test.com test.c

then all is OK and I can run test.com in a DOS box. However, I would like to 
split the process into a separate compile and link stage which gives me a 
better control over what will be linked in. I use the following command 
syntax:

bcc -0 -ansi -c -Md -o test.o test.c
ld86 -d -s -L/lib/ -Olibdos.a -o test.com crt0.o test.o

The test.com file consist of the test.o code followed by msdos.o followed by 
crt0.o. For some reason the first instruction in the file is not a jump to 
crt0.o.

I tried different permutations of the above ld86 command arguments but they 
all produce the same results. Can anybody spot what I am doing wrong?

Thanks,
Hans.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-02 15:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-02 15:57 ld86 link sequence Hans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox