public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Where to add a new bfd_mach
@ 2002-01-24  7:03 Aladdin Chang
  2002-01-24  7:25 ` Alan Modra
  2002-01-24  8:26 ` Nick Clifton
  0 siblings, 2 replies; 3+ messages in thread
From: Aladdin Chang @ 2002-01-24  7:03 UTC (permalink / raw)
  To: binutils


hi, 
I am a newbie in binutils and wonderful how to port binutils-2.11.2
to a new mips arch.

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.

Where can I add a new bfd_mach definition and regenerate the bfd-in2.h ?

thanks,

Aladdin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Where to add a new bfd_mach
  2002-01-24  7:03 Where to add a new bfd_mach Aladdin Chang
@ 2002-01-24  7:25 ` Alan Modra
  2002-01-24  8:26 ` Nick Clifton
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Modra @ 2002-01-24  7:25 UTC (permalink / raw)
  To: Aladdin Chang; +Cc: binutils

On Thu, Jan 24, 2002 at 05:39:25PM +0800, Aladdin Chang wrote:
> 
> 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.
> 
> Where can I add a new bfd_mach definition and regenerate the bfd-in2.h ?

grep for one of the existing definitions.  "make headers" to regenerate.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Where to add a new bfd_mach
  2002-01-24  7:03 Where to add a new bfd_mach Aladdin Chang
  2002-01-24  7:25 ` Alan Modra
@ 2002-01-24  8:26 ` Nick Clifton
  1 sibling, 0 replies; 3+ messages in thread
From: Nick Clifton @ 2002-01-24  8:26 UTC (permalink / raw)
  To: Aladdin Chang; +Cc: binutils

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-24 15:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-24  7:03 Where to add a new bfd_mach Aladdin Chang
2002-01-24  7:25 ` Alan Modra
2002-01-24  8:26 ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).