From 45a978263651815caf7d0741201175c8969c2cc3 Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Wed, 2 Sep 2009 02:03:46 -0400 Subject: [PATCH] fix bootblock build with gcc 4.4 --- .gitignore | 14 ++++++++++++++ Makefile | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..144b944 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +_* +*.o +*.d +*.asm +*.sym +*.img +vectors.S +bootblock +bootother +bootother.out +initcode +initcode.out +kernel +mkfs diff --git a/Makefile b/Makefile index 84c5cd0..6b63eda 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ bootblock: bootasm.S bootmain.c $(CC) $(CFLAGS) -nostdinc -I. -c bootasm.S $(LD) $(LDFLAGS) -N -e start -Ttext 0x7C00 -o bootblock.o bootasm.o bootmain.o $(OBJDUMP) -S bootblock.o > bootblock.asm - $(OBJCOPY) -S -O binary bootblock.o bootblock + $(OBJCOPY) -S -O binary -j .text bootblock.o bootblock ./sign.pl bootblock bootother: bootother.S