https://bitbucket.org/hudson/magic-lantern
Revision 294d215958402c7187bc4c3a7942c84458b83fea authored by hudson@kremvax.wan on 11 March 2010, 03:11:56 UTC, committed by hudson@kremvax.wan on 11 March 2010, 03:11:56 UTC
- Use the gcc stdio library for common string functions
- Disable everything except early boot code for initial testing
- Find more functions in 2.0.3
1 parent ecc67d5
Raw File
Tip revision: 294d215958402c7187bc4c3a7942c84458b83fea authored by hudson@kremvax.wan on 11 March 2010, 03:11:56 UTC
Canon firmware 2.0.3 support
Tip revision: 294d215
map2idc
#!/usr/bin/perl
use warnings;
use strict;

my $base = 0xFFF00000;

print <<"";
static main() {


#
# Parse the symbol dump from IDA Pro and output
# code into the .S file to define stubs for each of the
# entities.
#
while( <> )
{
	my ($addr,$name) = /^\s*0001:([0-9A-Fa-f]+)\s+([^\s]+)\s*$/
                       	or next;
	$addr = hex($addr);
	$addr += $base;

	printf "MakeNameEx( 0x%08x, \"%s\", 0x2 );\n",
		$addr,
		$name,
	;
}


print <<"";
}

__END__
back to top