mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 01:59:14 +03:00
printf format fixups in ELFLoader.
This commit is contained in:
parent
09fc9c0698
commit
df4fdd6f1e
Notes:
sideshowbarker
2024-07-19 18:45:44 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/df4fdd6f1ed
@ -47,7 +47,7 @@ unsigned ELFImage::symbolCount() const
|
||||
|
||||
void ELFImage::dump()
|
||||
{
|
||||
kprintf("AK::ELFImage{%p} {\n", this);
|
||||
kprintf("ELFImage{%p} {\n", this);
|
||||
kprintf(" isValid: %u\n", isValid());
|
||||
|
||||
if (!isValid()) {
|
||||
@ -57,7 +57,7 @@ void ELFImage::dump()
|
||||
|
||||
kprintf(" type: %s\n", objectFileTypeToString(header().e_type));
|
||||
kprintf(" machine: %u\n", header().e_machine);
|
||||
kprintf(" entry: %08x\n", header().e_entry);
|
||||
kprintf(" entry: %x\n", header().e_entry);
|
||||
kprintf(" shoff: %u\n", header().e_shoff);
|
||||
kprintf(" shnum: %u\n", header().e_shnum);
|
||||
kprintf(" shstrndx: %u\n", header().e_shstrndx);
|
||||
@ -79,7 +79,7 @@ void ELFImage::dump()
|
||||
kprintf("Symbol @%u:\n", i);
|
||||
kprintf(" Name: %s\n", sym.name());
|
||||
kprintf(" In section: %s\n", sectionIndexToString(sym.sectionIndex()));
|
||||
kprintf(" Value: %08x\n", sym.value());
|
||||
kprintf(" Value: %x\n", sym.value());
|
||||
kprintf(" Size: %u\n", sym.size());
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,7 @@ void ELFLoader::performRelocations()
|
||||
case R_386_PC32: {
|
||||
char* targetPtr = (char*)lookup(symbol);
|
||||
ptrdiff_t relativeOffset = (char*)targetPtr - ((char*)&patchPtr + 4);
|
||||
kprintf("[ELFLoader] Relocate PC32: offset=%08x, symbol=%u(%s) value=%08x target=%p, offset=%d\n",
|
||||
kprintf("[ELFLoader] Relocate PC32: offset=%x, symbol=%u(%s) value=%x target=%p, offset=%d\n",
|
||||
relocation.offset(),
|
||||
symbol.index(),
|
||||
symbol.name(),
|
||||
@ -87,7 +87,7 @@ void ELFLoader::performRelocations()
|
||||
break;
|
||||
}
|
||||
case R_386_32: {
|
||||
kprintf("[ELFLoader] Relocate Abs32: symbol=%u(%s), value=%08x, section=%s\n",
|
||||
kprintf("[ELFLoader] Relocate Abs32: symbol=%u(%s), value=%x, section=%s\n",
|
||||
symbol.index(),
|
||||
symbol.name(),
|
||||
symbol.value(),
|
||||
|
Loading…
Reference in New Issue
Block a user