[ECOS] arm-elf-objdump

Nick Garnett nickg@ecoscentric.com
Mon Jul 26 09:41:00 GMT 2004


Aravind B <arvindb@cranessoftware.com> writes:

> hi,
> i am trying to convert .elf file to .hex file.
> But i am getting BFD: stYsHp0e: warning: allocated section `.bss' not in
> segment.

Since the BSS should not be part of the hex file, it is not at all
clear why this message is being generated. What options are you giving
objcopy?

Note that it is just a warning, maybe the resulting HEX file is correct.


> after running the command arm-elf-objdump -h i have got the following
> information
> 
> Sections:
> Idx Name          Size      VMA       LMA       File off  Algn
>   0 .rom_vectors  00000040  40000000  40000000  00008000  2**0
>                   CONTENTS, ALLOC, LOAD, READONLY, CODE
>   1 .text         0002cea8  40000040  40000040  00008040  2**2
>                   CONTENTS, ALLOC, LOAD, READONLY, CODE
>   2 .fini         00000000  4002cee8  4002cee8  0004868c  2**0
>                   CONTENTS
>   3 .rodata       0000c614  4002cee8  4002cee8  00034ee8  2**2
>                   CONTENTS, ALLOC, LOAD, READONLY, DATA
>   4 .rodata1      00000000  400394fc  400394fc  0004868c  2**0
>                   CONTENTS
>   5 .fixup        00000000  400394fc  400394fc  0004868c  2**0
>                   CONTENTS
>   6 .gcc_except_table 00000000  400394fc  400394fc  0004868c  2**0
>                   CONTENTS
>   7 .fixed_vectors 00000140  10000020  10000020  000486a0  2**5
>                   CONTENTS, READONLY
>   8 .data         0000068c  10008000  400394fc  00048000  2**2
>                   CONTENTS, ALLOC, LOAD, DATA
>   9 .bss          00033318  1000868c  1000868c  0005068c  2**5
>                   ALLOC
>  10 .comment      00000a9e  00000000  00000000  0005068c  2**0
>                   CONTENTS, READONLY
> 
> 
> i want to know why i am getting  this warning. is there a way to get rid
> of this warning
> 

I'm not sure what you are trying to do with this executable. If
you are converting to hex in order to program ROMs or FLASHes via a
programmer then presumably this is a stand-alone executable. In that
case .fixed_vectors should be located at 0x00000020, not
0x10000020. Otherwise interrupts and exceptions will not work.

What target are you using? What class of ARM CPU does it have? What is
it's memory layout?


-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list