Print this page
12208 dboot_printf(): support %u

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/dboot/dboot_elfload.c
          +++ new/usr/src/uts/i86pc/dboot/dboot_elfload.c
↓ open down ↓ 177 lines elided ↑ open up ↑
 178  178  
 179  179          /*
 180  180           * Next look for bss
 181  181           */
 182  182          for (i = 0; i < eh->e_shnum; i++) {
 183  183                  shdr = (Elf64_Shdr *)(sechdrs + eh->e_shentsize * i);
 184  184  
 185  185                  /* zero out bss */
 186  186                  if (shdr->sh_type == SHT_NOBITS) {
 187  187                          if (prom_debug)
 188      -                                dboot_printf("zeroing BSS %ld bytes from "
      188 +                                dboot_printf("zeroing BSS %lu bytes from "
 189  189                                      "physaddr 0x%" PRIx64
 190  190                                      " (end=0x%" PRIx64 ")\n",
 191  191                                      (ulong_t)shdr->sh_size,
 192  192                                      next_addr,
 193  193                                      next_addr + shdr->sh_size);
 194  194                          (void) memset((void *)(uintptr_t)next_addr, 0,
 195  195                              shdr->sh_size);
 196  196                          break;
 197  197                  }
 198  198          }
 199  199  
 200  200          /*
 201  201           * Ignore the intepreter (or should we die if there is one??)
 202  202           */
 203  203          return (0);
 204  204  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX