Hi These patches remove the dwarfdump originated files from makedumpfile and use standard libraries instead. It should make the command more portable. The patch is based on Neil Horman's work, and I have incorporated the changes to the latest makedumpfile commannd.
Unnecessary reference to System.map or glib- library are also removed. Below is the description. Patch1: makedumpfile01-remove-system.map.patch This patch removes unnecessary reference to Sysetm.map, and let the command read the information from vmlinux instead. As a result, System.map no longer has to be specified as argument. Patch2: makedumpfile02-not-use-glib-function.patch The patch removes unnecessary reference to glib- library. It is required if the command has to be statically linked. Patch3: makedumpfile03-static-link.patch The patch changes the makefile to statically link the command. This patch is required when the command has to run on environments where dynamically linked libraries are not available. Patch4: makedumpfile04-move-open-function.patch The patch moves an open function from dwarfdump command's code to makedumpfile.c. As a result, it becomes easy to remove dwarfdump command's code. Patch5: makedumpfile05-change-macro-for-dwarfinfo.patch The patch changes some macros for reading debug information. As a result, it becomes easy to add calling elf libraries for searching debug information. Patch6: makedumpfile06-gtk-config-to-pkg-config.patch The patch changes getting options for compilation from gtk-config to pkg-config. As a result, the compilation becomes possible as for the environment for which gtk cannot be used. Patch7: makedumpfile07-delete-dwarfdump-code.patch The patch deletes the source codes from the dwarfdump command. This patch must be applied together with Patch8. Patch8: makedumpfile08-dwarfdump-code-to-elf-library.patch The patch adds the corresponding function calls to elf libraries for searching debug information instead of the source codes from the dwarfdump command. Passed our tests on x86_64, but is still unstable on i386 and ia64. Method of installation: You can compile the makedumpfile command as follows; 1. "tar -zxvf makedumpfile-20060930.tar.gz" 2. "cd makedumpfile" 3. "make; make install" Todo: 1.Reading/writing a configuration file (Done) 2.Dumping SPARSEMEM_EXTREME kernel (Done) 3.Adjusting to relocatable kernel (Done) 4.Porting to IA64 (Done) 5.Excluding free pages (Done) 6.Using libraries instead of dwarfdump code(Attached patches) 7.Output to a remote host 8.Dumping DISCONTIGMEM kernel Thanks tachibana
makedumpfile-20060930.tar.gz
Description: Binary data
_______________________________________________ fastboot mailing list [email protected] https://lists.osdl.org/mailman/listinfo/fastboot
