This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Where to add a new bfd_mach
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- To: Aladdin Chang <chang at totoro dot ee dot ntust dot edu dot tw>
- Cc: <binutils at sources dot redhat dot com>
- Date: 24 Jan 2002 15:23:05 +0000
- Subject: Re: Where to add a new bfd_mach
- References: <Pine.LNX.4.33.0201241738450.13773-100000@totoro.ee.ntust.edu.tw>
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