This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Elf to Bin format
On Mon, Jun 04, 2001 at 12:26:44PM -0400, Mark Salter wrote:
> >>>>> Narayana, Venkat A writes:
>
> > objdump of redboot.elf
>
> > arm-elf-objdump -h redboot.elf | more
>
> > redboot.elf: file format elf32-littlearm
>
> > Sections:
> > Idx Name Size VMA LMA File off Algn
> > 0 .debug_aranges 000005a0 00000000 00000000 0003a7d4 2**0
> > CONTENTS, READONLY, DEBUGGING
> > 1 .debug_pubnames 000027b0 00000000 00000000 0003ad74 2**0
> > CONTENTS, READONLY, DEBUGGING
> > 2 .debug_info 000303df 00000000 00000000 0003d524 2**0
> > CONTENTS, READONLY, DEBUGGING
> > 3 .debug_abbrev 00004794 00000000 00000000 0006d903 2**0
> > CONTENTS, READONLY, DEBUGGING
> > 4 .debug_line 000184ab 00000000 00000000 00072097 2**0
> > CONTENTS, READONLY, DEBUGGING
> > 5 .rom_vectors 00000040 a0000000 00000000 00008000 2**0
> > CONTENTS, ALLOC, LOAD, CODE
> > 6 .text 000274b4 00002000 00002000 0000a000 2**14
> > CONTENTS, ALLOC, LOAD, READONLY, CODE
> > 7 .fini 00000000 000294b4 000294b4 0008a542 2**0
> > CONTENTS
> > 8 .rodata 00006e38 000294b4 000294b4 000314b4 2**2
> > CONTENTS, ALLOC, LOAD, DATA
> > 9 .rodata1 00000000 000302ec 000302ec 0008a542 2**0
> > CONTENTS
> > 10 .fixup 00000000 000302ec 000302ec 0008a542 2**0
> > CONTENTS
> > 11 .gcc_except_table 00000000 000302ec 000302ec 0008a542 2**0
> > CONTENTS
> > 12 .fixed_vectors 00000160 a1f00020 a1f00020 0008a560 2**5
> > CONTENTS
> ^^^^^^^^^^^^^^^^^^
>
> This looks worng. You mentioned earlier that you moved .fixed_vectors.
> This may be triggering a objcopy bug. Objcopy would try to put the
> .fixed_vectors at offset 0xa1f00020 in the binary file which would
> make the file ~2.7G long. Objcopy might be giving up at this point
> so it doesn't get to .data.
Won't objcopy just skip that section if it doesn't have the
"LOAD" flag set?
--
Grant Edwards
grante@visi.com