This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: About the file is automatically generated in Binutils!!
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: libra <mr924352 at cs dot nthu dot edu dot tw>
- Cc: binutils at sources dot redhat dot com
- Date: 19 Apr 2004 11:30:12 -0400
- Subject: Re: About the file is automatically generated in Binutils!!
- References: <1082388069.4083ee65c10f3@webmail.cs.nthu.edu.tw>
libra <mr924352@cs.nthu.edu.tw> writes:
> Hello,all:
>
> In binutils source code,some files are automatically generated from others.
>
> For example,bfd-in2.h is automatically generated from "bfd
> -in.h", "init.c", "opncls.c", "libbfd.c",
> "bfdio.c", "bfdwin.c", "section.c", "archures.c", "reloc.c",
> "syms.c", "bfd.c", "archive.c", "corefile.c", "targets.c", "format.c",
> "linker.c" and "simple.c".*/
>
> It also says that Run "make headers" in your build bfd/ to regenerate.
Yes. It will also happen automatically if you run configure with
--enable-maintainer-mode, although in that case you need to have the
correct versions of autoconf and automake in your PATH.
> 1. Because i add new bfd architecture,bfd_arch_sp,i must regenerate bfd-in2.h
> in order to correspond to my new architecture "bfd_arch_sp".
Add the architecture in bfd/archures.c. Follow the existing
examples. You edit comments in archures.c which get turned into
definitions in bfd.h.
> 2. libbfd.h is also automatically generated from others like "libbfd-
> in.h", "init.c" and so on.
> Now,i also want to add new bfd_reloc_code_real_names[] in libbfd.h
> like "BFD_RELOC_TIC54X_PARTLS7"(this is for "tic54x").
> My bfd_reloc_code_real_names[] maybe like "BFD_RELOC_SP_PARTLS7"
Add those names to bfd/reloc.c. Follow the existing examples.
> I don't know how to add these inforamtions, then once i add it,i just
> Run "make headers" in my build bfd/ to regenerate. Then,i can get what i need
> like "bfd_arch_sp" and "BFD_RELOC_SP_PARTLS7".
Yes.
Ian