[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: LD bug?
From: |
Witness |
Subject: |
RE: LD bug? |
Date: |
Sat, 2 Feb 2002 15:28:54 -0500 |
> On Sat, Feb 02, 2002 at 03:15:55AM -0500, Witness wrote:
> > [nboot.s:49]
> > ldsw ds(%bx,1), %si
> > [nboot.s:181]
> > movw %es:di, %ax
> > [nboot.s:190]
> > movw %es:di, %ax
> > here's the output of my makefile:
> > as -o nyaos nboot.s
> > ld -Ttext 0x0 -s --oformat binary -o nyaos.img nyaos
> > nyaos(.text+0x65): undefined reference to `ds'
> > nyaos(.text+0x137): undefined reference to `di'
> > nyaos(.text+0x14c): undefined reference to `di'
> Which is correct. Without a `%', "ds" is just the name of a symbol
> (unless you have specified no register prefix via the .att_syntax
> directive). You want:
> lds %ds:(%bx,1), %si
> mov %es:(%di), %ax
Thank you that did the trick.
Benjamen R. Meyer