CPPFLAGS_vmlinux.lds  := -Upowerpc
  
 -BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd vmlinux.sm uImage
 +BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd vmlinux.sm uImage vmlinux.bin
  
- .PHONY: $(BOOT_TARGETS)
+ PHONY += $(BOOT_TARGETS)
  
  boot := arch/$(ARCH)/boot
  
 
        char tmp[SZ];
        int len;
        va_list ap;
-       
+ 
        va_start(ap, fmt);
        len = vsnprintf(tmp, SZ, fmt, ap);
 -      if (buf->size - buf->pos < len + 1) {
 -              buf->size += 128;
 -              buf->p = realloc(buf->p, buf->size);
 -      }
 -      strncpy(buf->p + buf->pos, tmp, len + 1);
 -      buf->pos += len;
 +      buf_write(buf, tmp, len);
        va_end(ap);
  }
  
- void
- buf_write(struct buffer *buf, const char *s, int len)
+ void buf_write(struct buffer *buf, const char *s, int len)
  {
        if (buf->size - buf->pos < len) {
 -              buf->size += len;
 +              buf->size += len + SZ;
                buf->p = realloc(buf->p, buf->size);
        }
        strncpy(buf->p + buf->pos, s, len);