Hello Thiadmer
Done that in the linker file but I get an error message.
GNUARM/bin/../lib/gcc/arm-elf/4.0.2/../../../../arm-elf/bin/ld: cannot find .=0x1fc collect2: ld returned 1 exit status
Do you know why?
I have some assembler code that I can put before position
0x1FC but I don't know how to place that code there.
Can you please explain me how to do that?
Thanks.
Rui
----- Mensagem Original -----
De: Thiadmer Riemersma ITB CompuPhase <go@...>
Data: Sexta-Feira, 17 de Fevereiro de 2006, 10:13
Assunto: [lpc2000] Re: How to protect code in LPC2129
> --- In lpc2000@yahoogroups.com, Rui Gonçalves <rpsgoncalves@...>
> wrote:> How can I place same assembler code before position
> > 0x01FC? And C code (compiled with gnuarm)?
>
> I have the following in the linker definition file for protected code:
> SECTIONS {
> . = 0
> startup : {
> *(.startup)
> . = 0x1fc;
> LONG(0x87654321);
> } >flash
> prog : {
> *(.text)
> *(.rodata)
> *(.rodata*)
> *(.glue_7)
> *(.glue_7t)
> } >flash
> etc. etc.
>
> Assembler code in section ".startup" comes before the protection key
> (0x87654321). Of course, it is my own responsibility to ensure that
> this code takes less than 0x1fc bytes. Code generated by GCC in the
> .text, .rodata and other sections come behind the protection key.
>
> Kind regards,
> Thiadmer Riemersma
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
_______________________________________________________________________________________
Ate 4500 euros para o que desejar!
Saber mais em http://www.iol.pt/correio/rodape.php?dst=0601271Message
Re: [lpc2000] Re: How to protect code in LPC2129
2006-02-17 by Rui Gonçalves
Attachments
- No local attachments were found for this message.