From 503318795adebe805dcc6437b362f55ba56d5d75 Mon Sep 17 00:00:00 2001 From: jakcron Date: Fri, 1 Jun 2018 22:18:28 +0800 Subject: [PATCH] [nstool] NSO RO api list isn't part of the NSO header. --- programs/nstool/source/NsoProcess.cpp | 12 ++++++++---- programs/nstool/source/NsoProcess.h | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/programs/nstool/source/NsoProcess.cpp b/programs/nstool/source/NsoProcess.cpp index 4bd9d94..b7fe4ed 100644 --- a/programs/nstool/source/NsoProcess.cpp +++ b/programs/nstool/source/NsoProcess.cpp @@ -40,6 +40,7 @@ void NsoProcess::process() if (mCliOutputType >= OUTPUT_NORMAL) { displayHeader(); + displayRoApiList(); } } @@ -266,6 +267,13 @@ void NsoProcess::displayHeader() } printf(" .bss:\n"); printf(" MemorySize: 0x%" PRIx32 "\n", mHdr.getBssSize()); + +#undef _HEXDUMP_L +} + +void NsoProcess::displayRoApiList() +{ + printf("[NSO RO Segment]\n"); if (mApiList.size() > 0) { printf(" API List:\n"); @@ -274,8 +282,4 @@ void NsoProcess::displayHeader() printf(" %s\n", mApiList[i].c_str()); } } - - - -#undef _HEXDUMP_L } \ No newline at end of file diff --git a/programs/nstool/source/NsoProcess.h b/programs/nstool/source/NsoProcess.h index 1f94d8a..6dbc982 100644 --- a/programs/nstool/source/NsoProcess.h +++ b/programs/nstool/source/NsoProcess.h @@ -41,4 +41,5 @@ private: void importCodeSegments(); void importApiList(); void displayHeader(); + void displayRoApiList(); }; \ No newline at end of file