[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Put text string after interrupt vectors
From: |
Lars Noschinski |
Subject: |
[avr-gcc-list] Put text string after interrupt vectors |
Date: |
Mon, 15 Aug 2005 12:32:04 +0200 |
User-agent: |
mutt-ng devel (Linux) |
Hello!
I'm rewriting an assembler program to C, which had a signature string at 0x20
in the flash memory. I tried to reproduce this with
const char signature[] __attribute__ ((section (".signature"))) = "signature";
and the linker option --section-start=.signature=0x0020, but this
doesn't work, because it overlaps with the .text section:
/usr/lib/gcc/avr/3.4.3/../../../../avr/bin/ld: section .text [00000000
-> 0000009f] overlaps section .signature [00000020 -> 00000040]
Is there a way to tell gcc (or ld) to put the signature at 0x20? If not,
is there at least a way to guarantee, that the signature is "anywhere
near the beginning" of the flash memory?
- Lars
pgpRSwwv6_di5.pgp
Description: PGP signature
- [avr-gcc-list] Put text string after interrupt vectors,
Lars Noschinski <=