This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]