flags for AS and LD for building bootsector code on x86

Manik, Raina (IE10) Manik.Raina@honeywell.com
Tue Sep 3 20:53:00 GMT 2002


Hi,


Please cc: me on the reply since i'm not subscribed to this
list.

I'm trying to generate 16 bit bootsector code on an intel
pentium II. Here are the flags i'm using for AS and LD

as -o bootsect.o bootsect.s
ld -Ttext 0x0 -s  -o bootsect bootsect.o

Are these flags correct or do i need to add some flags ?
Also, i'm using .code16 directive in my code.

thanks
Manik Raina



More information about the Binutils mailing list