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
Message
Re: adding protection to final binary image
2004-06-30 by Gus
Attachments
- No local attachments were found for this message.