#include <stddef.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include "myio.h"
#include "flt.h"
gehe zum Quellcode dieser Datei
#define USE_INT32_FOR_PTRS |
void dump_section |
( |
char * |
name, |
|
|
unsigned char * |
ptr, |
|
|
int |
size |
|
) |
| |
Definiert in Zeile 21 der Datei fltdump.c.
23 printf(
"\n\nDump %s",name);
28 if ((i % 16)==0 ) {
printf(
"\n%06x: ",i);}
29 if ((i % 16)==8 ) {
printf(
"| ");}
char* get_flat_string |
( |
int32_t |
offs) | |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definiert in Zeile 73 der Datei fltdump.c.
78 printf(
"fltdump.exe filename.flt [-f]\n -f = dump content of FLAT sections\n");
82 if ( argc > 2 && argv[2][0]==
'-' && argv[2][1]==
'f' )
90 fprintf(stderr,
"Error load file '%s': loaded %d\n",filename_flt,rv);
102 printf(
"\nFLT Headers:\n");
107 printf(
"This is not CHDK-FLAT!\n");
134 printf(
"Malformed module info - bad magicnum!\n");
139 printf(
"Malformed module info - bad sizeof!\n");
144 printf(
"\nModule info:\n");
148 char* branches_str[] = {
"any branch",
"CHDK",
"CHDK_DE",
"CHDK_SDM",
"PRIVATEBUILD"};
153 printf(
"Any platform.\n");
182 int cnt = new_import_buf[i] >> 24;
184 for (j=0; j<cnt; j++)
static void print_offs |
( |
char * |
prefix, |
|
|
uint32_t |
offs, |
|
|
char * |
postfix |
|
) |
| |
|
static |
Definiert in Zeile 36 der Datei fltdump.c.
42 printf(
"%s 0x00000000\n",prefix);
46 if ( offs >=
flat->
entry && offs<flat->data_start )
52 printf(
"%s 0x%08x (%s+0x%08x)%s",prefix, offs,sect,offs-secoffs,postfix);