From dfa83b0ac87bd1a7cc7625ee937bdfed110010bb Mon Sep 17 00:00:00 2001 From: John Reiser Date: Sun, 17 Dec 2006 15:34:13 -0800 Subject: [PATCH] arm-linux.kernel methods --- src/p_vmlinx.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/p_vmlinx.cpp b/src/p_vmlinx.cpp index be83efc9..4d1d6c02 100644 --- a/src/p_vmlinx.cpp +++ b/src/p_vmlinx.cpp @@ -130,7 +130,7 @@ PackVmlinuxARM::~PackVmlinuxARM() const int *PackVmlinuxARM::getCompressionMethods(int method, int level) const { - return Packer::getDefaultCompressionMethods_le32(method, level); + return Packer::getDefaultCompressionMethods_8(method, level); } @@ -406,8 +406,13 @@ void PackVmlinuxARM::buildLoader(const Filter *ft) if (ft->id) { addFilter32(ft->id); } - addLoader("LINUX030", getDecompressorSections(), - "IDENTSTR,UPX1HEAD", NULL); + addLoader("LINUX030", NULL); + if (ph.method == M_NRV2E_8) addLoader("NRV2E", NULL); + else if (ph.method == M_NRV2B_8) addLoader("NRV2B", NULL); + else if (ph.method == M_NRV2D_8) addLoader("NRV2D", NULL); + else if (M_IS_LZMA(ph.method)) addLoader("LZMA_ELF00,LZMA_DEC10,LZMA_DEC30", NULL); + else throwBadLoader(); + addLoader("IDENTSTR,UPX1HEAD", NULL); }