Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: adding protection to final binary image

2004-06-30 by Gus

Have you ever done that with ARM-ELF-GCC compiler or do you know how 
to do it?

Gus

--- In lpc2000@yahoogroups.com, "Tutors of ESAcademy" 
<esacademy@y...> wrote:
> > --- In lpc2000@yahoogroups.com, "Tutors of ESAcademy" 
> > <esacademy@y...> wrote:
> > > --- In lpc2000@yahoogroups.com, "Gus" <gus_is_working@y...> 
wrote:
> > > > I am trying to add the protection word to my final binary
> image. 
> > I 
> > > > need to place 0x87654321 at location 0x1fc. I don't know and 
> > > > couldn't figure out how to tell the linker to place a word 
at 
> > > > absolute(fixed) memory location.
> > > 
> > > 1. Generate an Intel hex file instead of a binary image
> > > 2. Place an additional line in the file with your keyword in
> Intel 
> > hex
> > > format
> > > 3. (optional) Convert the Intel hex file into a binary image
> > 
> > That would take care of the problem assuming the linker didn't 
use 
> > that memory location. I looked in the hex file and there is some 
> > data at that location!
> > 
> > Any more ideas?
> 
> Yes - reserve that memory location during linking. Any linker that 
I
> have worked with so far has an option exclude memory areas (or to
> not-include some). Sometimes this option is not available directly
> from the IDE but you have to set up a linker command file to do it.
> 
> Chris
> Tutor at ESAcademy
> www.esacademy.com
> www.canopenbook.com

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.