This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos 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: binutils wizardry


> -----Original Message-----
> From: Gary Thomas [mailto:gary@mlbassoc.com] 
> Sent: Friday, July 30, 2004 8:50 AM
> To: Doyle, Patrick
> Cc: ecos discuss list
> Subject: Re: [ECOS] binutils wizardry
> 
> 
> 
> Arrange to have your special data in it's own ELF section.  
> Then you can
> use objcopy to adjust the address of that section (and leave the rest 
> alone).  You should be able to work out the details to get 
> your program
> to load one place and the data in a totally different one.
> 
It's the "Arrange to have your special data in it's own ELF section" bit
that I'm looking to get started on.  Starting with the raw binary file, can
I convince objcopy or ld to wrap the appropriate gizmos around it to turn it
into an ELF section starting at address 0x80000?

Once I have that, how can I glue that ELF section to the existing ELF
application?

While I'm looking for the "teach me how to fish" answer here, I'd be glad
for the "give me a fish" solution as well -- I'll just reverse engineer the
"teach me how to fish" from that :-)

--wpd

Patrick Doyle
DSP Design Engineer
(603) 546-2179

 

This communication is from DTC Communications, Inc. and is intended to be
confidential and solely for the use of the persons or entities addressed
above.  If you are not an intended recipient, be aware that the information
contained herein may be protected from unauthorized use by privilege or law,
and any copying, distribution, disclosure, or other use of this information
is prohibited.  If you have received this communication in error, please
contact the sender by return e-mail or telephone the above number
immediately and delete or destroy all copies.  Thank you for your
cooperation.

 



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


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