mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
binfmt/elf.c: Fix syslog formats for ELF64
Loosely followed the copy in mod_insmod.c.
This commit is contained in:
committed by
Xiang Xiao
parent
c45534f41b
commit
fd58398918
+12
-12
@@ -132,8 +132,8 @@ static void elf_dumploadinfo(FAR struct elf_loadinfo_s *loadinfo)
|
|||||||
binfo(" e_machine: %04x\n", loadinfo->ehdr.e_machine);
|
binfo(" e_machine: %04x\n", loadinfo->ehdr.e_machine);
|
||||||
binfo(" e_version: %08x\n", loadinfo->ehdr.e_version);
|
binfo(" e_version: %08x\n", loadinfo->ehdr.e_version);
|
||||||
binfo(" e_entry: %08lx\n", (long)loadinfo->ehdr.e_entry);
|
binfo(" e_entry: %08lx\n", (long)loadinfo->ehdr.e_entry);
|
||||||
binfo(" e_phoff: %d\n", loadinfo->ehdr.e_phoff);
|
binfo(" e_phoff: %ju\n", (uintmax_t)loadinfo->ehdr.e_phoff);
|
||||||
binfo(" e_shoff: %d\n", loadinfo->ehdr.e_shoff);
|
binfo(" e_shoff: %ju\n", (uintmax_t)loadinfo->ehdr.e_shoff);
|
||||||
binfo(" e_flags: %08x\n" , loadinfo->ehdr.e_flags);
|
binfo(" e_flags: %08x\n" , loadinfo->ehdr.e_flags);
|
||||||
binfo(" e_ehsize: %d\n", loadinfo->ehdr.e_ehsize);
|
binfo(" e_ehsize: %d\n", loadinfo->ehdr.e_ehsize);
|
||||||
binfo(" e_phentsize: %d\n", loadinfo->ehdr.e_phentsize);
|
binfo(" e_phentsize: %d\n", loadinfo->ehdr.e_phentsize);
|
||||||
@@ -148,16 +148,16 @@ static void elf_dumploadinfo(FAR struct elf_loadinfo_s *loadinfo)
|
|||||||
{
|
{
|
||||||
FAR Elf_Shdr *shdr = &loadinfo->shdr[i];
|
FAR Elf_Shdr *shdr = &loadinfo->shdr[i];
|
||||||
binfo("Sections %d:\n", i);
|
binfo("Sections %d:\n", i);
|
||||||
binfo(" sh_name: %08x\n", shdr->sh_name);
|
binfo(" sh_name: %08x\n", shdr->sh_name);
|
||||||
binfo(" sh_type: %08x\n", shdr->sh_type);
|
binfo(" sh_type: %08x\n", shdr->sh_type);
|
||||||
binfo(" sh_flags: %08x\n", shdr->sh_flags);
|
binfo(" sh_flags: %08jx\n", (uintmax_t)shdr->sh_flags);
|
||||||
binfo(" sh_addr: %08x\n", shdr->sh_addr);
|
binfo(" sh_addr: %08jx\n", (uintmax_t)shdr->sh_addr);
|
||||||
binfo(" sh_offset: %d\n", shdr->sh_offset);
|
binfo(" sh_offset: %ju\n", (uintmax_t)shdr->sh_offset);
|
||||||
binfo(" sh_size: %d\n", shdr->sh_size);
|
binfo(" sh_size: %ju\n", (uintmax_t)shdr->sh_size);
|
||||||
binfo(" sh_link: %d\n", shdr->sh_link);
|
binfo(" sh_link: %d\n", shdr->sh_link);
|
||||||
binfo(" sh_info: %d\n", shdr->sh_info);
|
binfo(" sh_info: %d\n", shdr->sh_info);
|
||||||
binfo(" sh_addralign: %d\n", shdr->sh_addralign);
|
binfo(" sh_addralign: %ju\n", (uintmax_t)shdr->sh_addralign);
|
||||||
binfo(" sh_entsize: %d\n", shdr->sh_entsize);
|
binfo(" sh_entsize: %ju\n", (uintmax_t)shdr->sh_entsize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user