def generate_supported_architectures_source(supported_archs, supported_machines):
arch_entries = []<EOL>mach_entries = []<EOL>for arch, little, big, comment in supported_archs:<EOL><INDENT>arch_entries.append( pybfd_arch_entry % (arch[<NUM_LIT:4> : ].upper(), arch) )<EOL><DEDENT>for mach, value in supported_machines:<EOL><INDENT>mach_entries.append( pybfd_mach_entry % (mach[<NUM_LIT:4> : ].upper(), value) )<EOL><DEDENT>return gen_bfd_archs_code % (<EOL>"<STR_LIT:\n>".join(arch_entries),<EOL>"<STR_LIT:\n>".join(mach_entries))<EOL>
Extract export symbols using binutils's nm utility from Binutils and
    generate a current header for PyBFD.