This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
flags for AS and LD for building bootsector code on x86
- From: "Manik, Raina (IE10)" <Manik dot Raina at honeywell dot com>
- To: binutils at sources dot redhat dot com
- Cc: "Manik, Raina (IE10)" <Manik dot Raina at honeywell dot com>
- Date: Tue, 3 Sep 2002 22:49:55 -0500
- Subject: flags for AS and LD for building bootsector code on x86
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