Changes in uspace/srv/loader/elf_load.c [1e00216:d88218b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/loader/elf_load.c
r1e00216 rd88218b 109 109 int fd; 110 110 int rc; 111 111 112 112 fd = open(file_name, O_RDONLY); 113 113 if (fd < 0) { … … 344 344 seg_ptr = (void *) seg_addr; 345 345 346 DPRINTF("Load segment at addr %p, size 0x%x\n", seg_addr,346 DPRINTF("Load segment at addr %p, size 0x%x\n", (void *) seg_addr, 347 347 entry->p_memsz); 348 348 … … 372 372 mem_sz = entry->p_memsz + (entry->p_vaddr - base); 373 373 374 DPRINTF("Map to seg_addr=%p-%p.\n", seg_addr, 375 entry->p_vaddr + bias + ALIGN_UP(entry->p_memsz, PAGE_SIZE)); 374 DPRINTF("Map to seg_addr=%p-%p.\n", (void *) seg_addr, 375 (void *) (entry->p_vaddr + bias + 376 ALIGN_UP(entry->p_memsz, PAGE_SIZE))); 376 377 377 378 /* … … 386 387 } 387 388 388 DPRINTF("as_area_create(%p, 0x%x, %d) -> 0x%lx\n",389 base + bias, mem_sz, flags, (uintptr_t)a);389 DPRINTF("as_area_create(%p, %#zx, %d) -> %p\n", 390 (void *) (base + bias), mem_sz, flags, (void *) a); 390 391 391 392 /* … … 464 465 (void *)((uint8_t *)entry->sh_addr + elf->bias); 465 466 DPRINTF("Dynamic section found at %p.\n", 466 (uintptr_t)elf->info->dynamic);467 (void *) elf->info->dynamic); 467 468 break; 468 469 default:
Note:
See TracChangeset
for help on using the changeset viewer.