Where to add a new bfd_mach
Nick Clifton
nickc@cambridge.redhat.com
Thu Jan 24 08:26:00 GMT 2002
Hi Aladdin,
> I want to add an new bfd_mach_newmips in bfd-in2.h , but the
> source notice that the file bfd-in2.h was GENERATED, don't modify.
Add a new entry to the huge comment in bfd/archures.c and a new line
to the arch_info_struct[] in bfd/cpu-mips.c. Then run "make headers"
to regernate the automatic files.
Assuming you are working on an ELF based port you will also want to
look at the code for elf_mips_mach() and
_bfd_mips_elf_final_write_processing() in bfd/elf32-mips.c.
Cheers
Nick
More information about the Binutils
mailing list