[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Howto put constants on fixed address
From: |
zizka |
Subject: |
Re: [avr-gcc-list] Howto put constants on fixed address |
Date: |
Thu, 20 Dec 2007 16:09:26 +0100 |
Thanks for the links, but that is not exactly what I am looking for. Using this
document I was able to create output like this:
0x0000-0x008F .vectors
0x0090-0x03FF gap
0x0400-0x041F my section
0x0420- rest of the .text section
The gap is empty - it's waste of the flash space. I have not found if it is
possible to put my section to any address and let linker to "flow the .text
section round it", it seems to me that it is not possible, but I don't know why
- the linker should be able to do this, it's not a difficult task...
______________________________________________________________
> Od: address@hidden
> Komu: Martin ŽiŞka <address@hidden>
> CC: avr-gcc List <address@hidden>
> Datum: 20.12.2007 01:12
> Předmět: Re: [avr-gcc-list] Howto put constants on fixed address
>
>On Dec 19, 2007, at 5:03 PM, Martin Žižka wrote:
>
>> Yes, that will place the .length segment between .vectors > and
.progmem. But
>> you are unable to place it to some exact address. That will place it >
to
>> address that is offset_of(.vectors)+length_of(.vectors). That can be
>> different for some cpus.
>
>
>I think this URL describes the syntax to do what Martin is looking to
do:
>http://www.gnu.org/software/binutils/manual/ld-2.9.1/html_node/ld_21.html#SEC21
>
>More hints here, in that one can edit the . address:
>http://www.gnu.org/software/binutils/manual/ld-2.9.1/html_node/ld_10.html
>
>--
>David Kelly N4HHE, address@hidden
>========================================================================
>Whom computers would destroy, they must first drive mad.
>
>
- [avr-gcc-list] Howto put constants on fixed address, Zizka, 2007/12/19
- RE: [avr-gcc-list] Howto put constants on fixed address, Weddington, Eric, 2007/12/19
- RE: [avr-gcc-list] Howto put constants on fixed address, zizka, 2007/12/19
- RE: [avr-gcc-list] Howto put constants on fixed address, Stu Bell, 2007/12/19
- RE: [avr-gcc-list] Howto put constants on fixed address, Stu Bell, 2007/12/19
- RE: [avr-gcc-list] Howto put constants on fixed address, Martin Žižka, 2007/12/19
- Re: [avr-gcc-list] Howto put constants on fixed address, David Kelly, 2007/12/19
- Re: [avr-gcc-list] Howto put constants on fixed address,
zizka <=
- Re: [avr-gcc-list] Howto put constants on fixed address, TODD BATZLER, 2007/12/20
- RE: [avr-gcc-list] Howto put constants on fixed address, Martin Žižka, 2007/12/20
- RE: [avr-gcc-list] Howto put constants on fixed address, Stu Bell, 2007/12/20
- RE: [avr-gcc-list] Howto put constants on fixed address, Weddington, Eric, 2007/12/20
- RE: [avr-gcc-list] Howto put constants on fixed address, Martin Žižka, 2007/12/20
- Re: [avr-gcc-list] Howto put constants on fixed address, David Kelly, 2007/12/20
- Re: [avr-gcc-list] Howto put constants on fixed address, Joerg Wunsch, 2007/12/24
- RE: [avr-gcc-list] Howto put constants on fixed address, Stu Bell, 2007/12/20
- RE: [avr-gcc-list] Howto put constants on fixed address, Stu Bell, 2007/12/19