Lines Matching refs:OUTPUT
882 open (OUTPUT, ">$output") || die "$0 : can't open $output for writing\n";
886 print OUTPUT "/* DO NOT EDIT - Generated automatically by ".$_." */\n";
887 print OUTPUT "static u32 ".$prefix."SCRIPT[] = {\n";
891 printf OUTPUT "/*\n$list[$i]\nat 0x%08x : */", $i;
893 printf OUTPUT "\t0x%08x,", $code[$i];
897 printf OUTPUT "0%s,", $2
899 printf OUTPUT "0x%08x,",$code[$i+1];
905 printf OUTPUT "0,\n";
907 printf OUTPUT "0x%08x,\n",$code[$i+2];
911 printf OUTPUT "\n";
916 print OUTPUT "};\n\n";
919 printf OUTPUT "#define A_$i\t0x%08x\n", $symbol_values{$i};
921 printf OUTPUT "#define A_".$i."_used ".$prefix."A_".$i."_used\n";
926 printf OUTPUT "static u32 A_".$i."_used\[\] __attribute((unused)) = {\n";
933 printf OUTPUT "\t0x%08x,\n", $address / 4;
936 printf OUTPUT "};\n\n";
940 printf OUTPUT "#define Ent_$i\t0x%08x\n", $symbol_values{$i};
948 printf OUTPUT "static u32 ".$prefix."LABELPATCHES[] __attribute((unused)) = {\n";
950 printf OUTPUT "\t0x%08x,\n", $patch;
952 printf OUTPUT "};\n\n";
955 printf OUTPUT "static struct {\n\tu32\toffset;\n\tvoid\t\t*address;\n".
959 printf OUTPUT "\t{0x%08x, &%s},\n", $off, $ident;
962 printf OUTPUT "};\n\n";
964 printf OUTPUT "static u32 ".$prefix."INSTRUCTIONS __attribute((unused))\t= %d;\n",
966 printf OUTPUT "static u32 ".$prefix."PATCHES __attribute((unused))\t= %d;\n",
968 printf OUTPUT "static u32 ".$prefix."EXTERNAL_PATCHES_LEN __attribute((unused))\t= %d;\n",
970 close OUTPUT;