This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: About bfd (Binary File Descriptor)
- From: libra <mr924352 at cs dot nthu dot edu dot tw>
- To: binutils at sources dot redhat dot com
- Date: Thu, 15 Apr 2004 23:00:48 +0800
- Subject: Re: About bfd (Binary File Descriptor)
At first, thanks for your reply.
I give an example to explain my problem.
For example, when i compile a c file to an executable file by using gcc,
i use the arm-elf-objdump(cross compile for target "arm") to dump the
executable file.Obviously,this will show the error message like "arm-elf-
objdump: a.exe: File format not recognized".
I try to find where is the program to examine the file format(ex:pei-i386 or
elf32-littlearm). But, i get nothing.
I think there must be some place to set the file format information, and to
check the file format when you wnat to execute this executable file or to dump
it.
thanks a lot!!
----- Original Message -----
> > If we add new file format in binutils, we must add new file like
> > cpu.-arm.c elf32-arm.c (ex:for ELF in arm).
> >
> > There are also some files like bfd.c, bfd-in.h,archive.c,targets.c and so
on.
> >
> > My question is that:
> >
> > How these file communicate with each other?
>
> I'm sorry, I don't understand this question.
>
> > What is different between bfd and ELF?
>
> BFD is a library for reading and writing object files. It supports a
> number of different object file formats.
>
> ELF is an object file format. It is one of the object file formats
> which BFD supports.
>
> On a typical GNU/Linux system, you can get some very limited
> information by running the command 'info bfd'.
>
> Ian
>