diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2004-04-25 19:50:20 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2004-04-25 19:50:20 +0000 |
| commit | a50d1c087646f3ca3788737f99100f7995b90d87 (patch) | |
| tree | 639920723bbbbbb03e4d6e7cec2ff304748748c4 /sys/boot | |
| parent | a8abffed541933028a63ce89a690de930b9e2c43 (diff) | |
Notes
Diffstat (limited to 'sys/boot')
| -rw-r--r-- | sys/boot/i386/boot0/Makefile | 8 | ||||
| -rw-r--r-- | sys/boot/i386/btx/btx/Makefile | 9 | ||||
| -rw-r--r-- | sys/boot/i386/btx/btxldr/Makefile | 9 | ||||
| -rw-r--r-- | sys/boot/i386/cdboot/Makefile | 7 | ||||
| -rw-r--r-- | sys/boot/i386/mbr/Makefile | 7 | ||||
| -rw-r--r-- | sys/boot/i386/pxeldr/Makefile | 7 |
6 files changed, 12 insertions, 35 deletions
diff --git a/sys/boot/i386/boot0/Makefile b/sys/boot/i386/boot0/Makefile index b22cf4d494dd3..dea34028ef067 100644 --- a/sys/boot/i386/boot0/Makefile +++ b/sys/boot/i386/boot0/Makefile @@ -1,11 +1,10 @@ # $FreeBSD$ -PROG= ${BOOT}.out +PROG= ${BOOT} INTERNALPROG= FILES= ${BOOT} NOMAN= SRCS= ${BOOT}.s -CLEANFILES= ${BOOT} BOOT?= boot0 @@ -34,9 +33,6 @@ AFLAGS+=--defsym FLAGS=${BOOT_BOOT0_FLAGS} \ --defsym TICKS=${BOOT_BOOT0_TICKS} \ --defsym COMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED} -LDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG} - -${BOOT}: ${BOOT}.out - objcopy -S -O binary ${BOOT}.out ${.TARGET} +LDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG} -Wl,-S -Wl,--oformat -Wl,binary .include <bsd.prog.mk> diff --git a/sys/boot/i386/btx/btx/Makefile b/sys/boot/i386/btx/btx/Makefile index 510716fa5ee5d..25374baffbbb3 100644 --- a/sys/boot/i386/btx/btx/Makefile +++ b/sys/boot/i386/btx/btx/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -PROG= btx.out +PROG= btx INTERNALPROG= NOMAN= SRCS= btx.S @@ -29,11 +29,6 @@ CFLAGS+=-DBTX_SERIAL -DSIOPRT=${BOOT_COMCONSOLE_PORT} \ ORG= 0x9000 -all: btx - -LDFLAGS=-N -e start -Ttext ${ORG} - -btx: btx.out - objcopy -S -O binary btx.out ${.TARGET} +LDFLAGS=-N -e start -Ttext ${ORG} -Wl,-S -Wl,--oformat -Wl,binary .include <bsd.prog.mk> diff --git a/sys/boot/i386/btx/btxldr/Makefile b/sys/boot/i386/btx/btxldr/Makefile index 358e3963e4f6f..8658acadf9508 100644 --- a/sys/boot/i386/btx/btxldr/Makefile +++ b/sys/boot/i386/btx/btxldr/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -PROG= btxldr.out +PROG= btxldr INTERNALPROG= NOMAN= SRCS= btxldr.S @@ -12,11 +12,6 @@ CFLAGS+=-DLOADER_ADDRESS=${LOADER_ADDRESS} CFLAGS+=-DBTXLDR_VERBOSE .endif -all: btxldr - -LDFLAGS=-N -e start -Ttext ${LOADER_ADDRESS} - -btxldr: btxldr.out - objcopy -S -O binary btxldr.out ${.TARGET} +LDFLAGS=-N -e start -Ttext ${LOADER_ADDRESS} -Wl,-S -Wl,--oformat -Wl,binary .include <bsd.prog.mk> diff --git a/sys/boot/i386/cdboot/Makefile b/sys/boot/i386/cdboot/Makefile index 08302e4a1272f..a3a0c03dc61a2 100644 --- a/sys/boot/i386/cdboot/Makefile +++ b/sys/boot/i386/cdboot/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -PROG= ${BOOT}.out +PROG= ${BOOT} INTERNALPROG= FILES= ${BOOT} NOMAN= @@ -10,9 +10,6 @@ CLEANFILES= ${BOOT} BOOT= cdboot ORG= 0x7c00 -${BOOT}: ${BOOT}.out - objcopy -S -O binary ${BOOT}.out ${.TARGET} - -LDFLAGS=-N -e start -Ttext ${ORG} +LDFLAGS=-N -e start -Ttext ${ORG} -Wl,-S -Wl,--oformat -Wl,binary .include <bsd.prog.mk> diff --git a/sys/boot/i386/mbr/Makefile b/sys/boot/i386/mbr/Makefile index 240529733992e..b52aef05bcead 100644 --- a/sys/boot/i386/mbr/Makefile +++ b/sys/boot/i386/mbr/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -PROG= ${BOOT}.out +PROG= ${BOOT} INTERNALPROG= FILES= ${BOOT} NOMAN= @@ -10,9 +10,6 @@ CLEANFILES= ${BOOT} BOOT= mbr ORG= 0x600 -${BOOT}: ${BOOT}.out - objcopy -S -O binary ${BOOT}.out ${.TARGET} - -LDFLAGS=-N -e start -Ttext ${ORG} +LDFLAGS=-N -e start -Ttext ${ORG} -Wl,-S -Wl,--oformat -Wl,binary .include <bsd.prog.mk> diff --git a/sys/boot/i386/pxeldr/Makefile b/sys/boot/i386/pxeldr/Makefile index f628e6dcaba3b..2a8b57d735829 100644 --- a/sys/boot/i386/pxeldr/Makefile +++ b/sys/boot/i386/pxeldr/Makefile @@ -3,7 +3,7 @@ # Pick up ../Makefile.inc early. .include <bsd.init.mk> -PROG= ${LDR}.out +PROG= ${LDR} INTERNALPROG= FILES= ${BOOT} MAN= ${BOOT}.8 @@ -34,10 +34,7 @@ ${BOOT}: ${LDR} ${LOADER} CLEANFILES+= ${LDR} -${LDR}: ${LDR}.out - objcopy -S -O binary ${LDR}.out ${.TARGET} - -LDFLAGS+= -N -e start -Ttext ${ORG} +LDFLAGS+= -N -e start -Ttext ${ORG} -Wl,-S -Wl,--oformat -Wl,binary CLEANFILES+= ${LOADER} |
