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]

Re: creating binaries by objcopy


On Sun, Jun 05, 2005 at 08:53:53PM +0100, Bahadir Balban wrote:
> On 6/5/05, Daniel Jacobowitz <drow@false.org> wrote:
> > The answers to these questions depend on your target and on your
> > linker.  It's hard to say.
> > 
> > --
> > Daniel Jacobowitz
> > CodeSourcery, LLC
> > 
> 
> In fact I am using an arm-elf-gcc toolchain and also arm-none-eabi
> from CodeSourcery. The problem is that after I generate a binary,
> objdump does not work on it, (fails with a not valid elf file error,
> which is expected) so I can't see if the file layout is somewhat what
> I want. How else could I find out?

You can't, really.  But it's going to be all of the sections of the ELF
file which have ALLOC set, and I believe that will include any
NOBITS sections like .bss.  The whole file will expect to be loaded to
a contiguous region of memory at the lowest address of any section with
contents.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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