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: libra <mr924352 at cs dot nthu dot edu dot tw>
- To: binutils at sources dot redhat dot com
- Date: Tue, 20 Apr 2004 08:59:28 +0800
- Subject: Re: About the file is automatically generated in Binutils!!
At first, thanks for your reply.
In Q1
I have tried to add my architecture(bfd_arch_sp) in bfd/archures.c,
and i also run "make headers" in my build/binutils/bfd/ directory.
When i check the build/binutils/bfd/bfd.h,i cann't find the definitions of my
architecture.
I think,maybe,i lost something.
In Q2:
In bfd/reloc.c,i have checked it.
But, i find that the existing examples are all in the comment.
I don't understand when i add my own name (BFD_RELOC_SP_PARTLS7) in the
reloc.c,how it can work?
thanks a lot!!
----- Original Message -----
From: "Ian Lance Taylor" <ian@wasabisystems.com>
To: "libra" <mr924352@cs.nthu.edu.tw>
Cc: <binutils@sources.redhat.com>
Sent: Monday, April 19, 2004 11:30 PM
Subject: Re: About the file is automatically generated in Binutils!!
> 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
>
>