From 9c59a5d9b6086f242c93e24c2bf61ae6e3e28d06 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Sat, 13 Jan 2007 17:30:03 -0800 Subject: [PATCH] p_vmlinx test jig for ARM --- src/p_vmlinx.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/p_vmlinx.cpp b/src/p_vmlinx.cpp index aebffcf3..edd92cc5 100644 --- a/src/p_vmlinx.cpp +++ b/src/p_vmlinx.cpp @@ -1003,6 +1003,28 @@ bool PackVmlinuxAMD64::has_valid_vmlinux_head() ///* Fall into .text of upx-compressed vmlinux. */ //----- +// Example test jig for ARM: +//-----main.c +//unsigned work[(1<<16)/sizeof(unsigned)]; +//unsigned kernel[(3<<20)/sizeof(unsigned)]; +// +///* In order to avoid complaints such as +// /usr/bin/ld: ERROR: libgcc_s.so uses hardware FP, whereas main uses software FP +// when building this test program, then you must change the .e_flags +// in the header of the compressed, relocatble output from upx, from +// Flags: 0x202, has entry point, GNU EABI, software FP +// to +// Flags: 0x0 +//*/ +// +//main() +//{ +// char *const end = decompress_kernel(kernel, work, (1<<(16-2))+work, 0x1234); +// write(1, kernel, (char *)end - (char *)kernel); +// return 0; +//} +//----- + /************************************************************************* //