Lines Matching refs:OUTPUT
895 open (OUTPUT, ">$output") || die "$0 : can't open $output for writing\n";
899 print OUTPUT "/* DO NOT EDIT - Generated automatically by ".$_." */\n";
900 print OUTPUT "static u32 ".$prefix."SCRIPT[] = {\n";
904 printf OUTPUT "/*\n$list[$i]\nat 0x%08x : */", $i;
906 printf OUTPUT "\t0x%08x,", $code[$i];
910 printf OUTPUT "0%s,", $2
912 printf OUTPUT "0x%08x,",$code[$i+1];
918 printf OUTPUT "0,\n";
920 printf OUTPUT "0x%08x,\n",$code[$i+2];
924 printf OUTPUT "\n";
929 print OUTPUT "};\n\n";
932 printf OUTPUT "#define A_$i\t0x%08x\n", $symbol_values{$i};
934 printf OUTPUT "#define A_".$i."_used ".$prefix."A_".$i."_used\n";
939 printf OUTPUT "static u32 A_".$i."_used\[\] __attribute((unused)) = {\n";
946 printf OUTPUT "\t0x%08x,\n", $address / 4;
949 printf OUTPUT "};\n\n";
953 printf OUTPUT "#define Ent_$i\t0x%08x\n", $symbol_values{$i};
961 printf OUTPUT "static u32 ".$prefix."LABELPATCHES[] __attribute((unused)) = {\n";
963 printf OUTPUT "\t0x%08x,\n", $patch;
965 printf OUTPUT "};\n\n";
968 printf OUTPUT "static struct {\n\tu32\toffset;\n\tvoid\t\t*address;\n".
972 printf OUTPUT "\t{0x%08x, &%s},\n", $off, $ident;
975 printf OUTPUT "};\n\n";
977 printf OUTPUT "static u32 ".$prefix."INSTRUCTIONS __attribute((unused))\t= %d;\n",
979 printf OUTPUT "static u32 ".$prefix."PATCHES __attribute((unused))\t= %d;\n",
981 printf OUTPUT "static u32 ".$prefix."EXTERNAL_PATCHES_LEN __attribute((unused))\t= %d;\n",
983 close OUTPUT;