#!/usr/bin/perl -w
# Redefine the symbols listed on standard in.

$TARGET = 'arm-wince-pe';
$OBJCOPY = $TARGET . '-objcopy';

$library = $ARGV[0];

while(<STDIN>) {
	chomp;
	$command = "$OBJCOPY --redefine-sym _$_=_M\\\$_$_ $library";
	print "$command\n";
	print `$command`;
}
