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]

About the file is automatically generated in Binutils!!


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.

My question is that:

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".

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"

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".

                                                             Thanks a lot!!





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