summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/boot/sys/boot/i386/gptzfsboot/Makefile1
-rw-r--r--usr/src/boot/sys/boot/i386/isoboot/Makefile2
2 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/boot/sys/boot/i386/gptzfsboot/Makefile b/usr/src/boot/sys/boot/i386/gptzfsboot/Makefile
index 466a2f1276..b7a73288cc 100644
--- a/usr/src/boot/sys/boot/i386/gptzfsboot/Makefile
+++ b/usr/src/boot/sys/boot/i386/gptzfsboot/Makefile
@@ -68,6 +68,7 @@ OBJS = multiboot.o zfsboot.o sio.o cons.o devopen.o \
part.o := CPPFLAGS += -I$(ZLIB)
smbios.o := CPPFLAGS += -DSMBIOS_SERIAL_NUMBERS
smbios.o := CPPFLAGS += -DSMBIOS_LITTLE_ENDIAN_UUID
+gptldr.out := LD_FLAGS += -m elf_i386_sol2
CLEANFILES= gptzfsboot $(OBJS)
diff --git a/usr/src/boot/sys/boot/i386/isoboot/Makefile b/usr/src/boot/sys/boot/i386/isoboot/Makefile
index fd23e8e2a3..89130a52c9 100644
--- a/usr/src/boot/sys/boot/i386/isoboot/Makefile
+++ b/usr/src/boot/sys/boot/i386/isoboot/Makefile
@@ -46,6 +46,8 @@ LDSCRIPT= ../boot.ldscript
LD_FLAGS= -static -N --gc-sections
LIBSTAND= ../../libstand/$(MACH)/libstand.a
+gptldr.out := LD_FLAGS += -m elf_i386_sol2
+
include ../Makefile.inc
all: $(PROG)