kernel: avoid dprintf messages for known header types we don't use.
* fix a typo in runtime_loader/count_regions().
This commit is contained in:
@@ -2231,6 +2231,12 @@ load_kernel_add_on(const char *path)
|
|||||||
case PT_DYNAMIC:
|
case PT_DYNAMIC:
|
||||||
image->dynamic_section = programHeaders[i].p_vaddr;
|
image->dynamic_section = programHeaders[i].p_vaddr;
|
||||||
continue;
|
continue;
|
||||||
|
case PT_INTERP:
|
||||||
|
// should check here for appropriate interpreter
|
||||||
|
continue;
|
||||||
|
case PT_PHDR:
|
||||||
|
// we don't use it
|
||||||
|
continue;
|
||||||
default:
|
default:
|
||||||
dprintf("%s: unhandled pheader type %#" B_PRIx32 "\n", fileName,
|
dprintf("%s: unhandled pheader type %#" B_PRIx32 "\n", fileName,
|
||||||
programHeaders[i].p_type);
|
programHeaders[i].p_type);
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ count_regions(const char* imagePath, char const* buff, int phnum, int phentsize)
|
|||||||
// will be handled at some other place
|
// will be handled at some other place
|
||||||
break;
|
break;
|
||||||
case PT_INTERP:
|
case PT_INTERP:
|
||||||
// should check here for appropiate interpreter
|
// should check here for appropriate interpreter
|
||||||
break;
|
break;
|
||||||
case PT_NOTE:
|
case PT_NOTE:
|
||||||
// unsupported
|
// unsupported
|
||||||
|
|||||||
Reference in New Issue
Block a user