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: The problem of m68k-elf-objcopy


Hi Aladdin,

> I can see the contain of section .vector using m68k-elf-objdump, but
> can not copy it to S-Record using m68k-elf-objcopy, what is the problem ?
> =========================================
> $ m68k-elf-objdump -s -j .vector  ram_test
> 
> ram_test:     file format elf32-m68k
> 
> Contents of section .vector:
>  0400 0000fffe 00000408                    ........
> ----------------------------------------------------
> $ m68k-elf-objcopy -O srec -j .vector ram_test vector
> $ cat vector
> S0090000766572746F7254
> S9030408F0

Does the .vector section have both the ALLOC and LOAD flags set ?  If
not then it will not be converted into a S-record.  (You can use
'objdump -h ram_test' to check).

Cheers
        Nick


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