-boot1u: $(SYMROOT)/machOconv $(OBJS) boot1u0
- $(LD) -static -preload -segaddr __TEXT $(BOOT1UADDR) -segalign 20 \
- -o $(SYMROOT)/boot1u.sys $(OBJS) $(LIBS) -lcc_kext
- size $(SYMROOT)/boot1u.sys
- $(SYMROOT)/machOconv $(SYMROOT)/boot1u.sys $(SYMROOT)/boot1u.post
- ls -l $(SYMROOT)/boot1u.post
- @( size=`ls -l $(SYMROOT)/boot1u.post | awk '{ print $$5}'` ; \
+boot1u: $(SYMROOT)/machOconv boot1u0 $(OBJS)
+ $(LD) -arch i386 -fno-builtin -static -Wl,-preload -Wl,-segaddr,__TEXT,$(BOOT1UADDR) -nostdlib -Wl,-segalign,20 \
+ -o $(SYMROOT)/$(@F).sys $(filter %.o,$^) $(LIBS) -lcc_kext
+ size $(SYMROOT)/$(@F).sys
+ $(SYMROOT)/machOconv $(SYMROOT)/$(@F).sys $(SYMROOT)/$(@F).post
+ ls -l $(SYMROOT)/$(@F).post
+ @( size=`ls -l $(SYMROOT)/$(@F).post | awk '{ print $$5}'` ; \