This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Where to add a new bfd_mach


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]