From e9701020acdf933d3a148f4166307584433878fa Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 29 Nov 2020 19:25:35 +0500 Subject: [PATCH] Print Multiboot 2 ELF symbols tag --- src/multiboot2/print.c | 5 +++++ tests/test_multiboot2_print.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/multiboot2/print.c b/src/multiboot2/print.c index 355c84f..41c0d6a 100644 --- a/src/multiboot2/print.c +++ b/src/multiboot2/print.c @@ -308,5 +308,10 @@ void KernAux_Multiboot2_Tag_ELFSymbols_print( return; } + print(" num: %hu\n", tag->num); + print(" entsize: %hu\n", tag->ent_size); + print(" shndx: %hu\n", tag->shndx); + print(" reserved1: %hu\n", tag->reserved1); + // TODO: implement this } diff --git a/tests/test_multiboot2_print.c b/tests/test_multiboot2_print.c index 115b7ec..0bf9c10 100644 --- a/tests/test_multiboot2_print.c +++ b/tests/test_multiboot2_print.c @@ -82,6 +82,10 @@ static const char output1[] = "Multiboot 2 tag\n" " type: 9 (ELF symbols)\n" " size: 420\n" + " num: 10\n" + " entsize: 0\n" + " shndx: 40\n" + " reserved1: 0\n" "Multiboot 2 tag\n" " type: 4 (basic memory info)\n" " size: 16\n"