[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Version/Signature in Flash
From: |
Klaus Rudolph |
Subject: |
Re: Version/Signature in Flash |
Date: |
Wed, 19 Jan 2022 16:07:54 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 |
Hi,
-Wl,--undefined=signature
This will keep it in flash and not let the linker strip its value.
Also when preparing your .hex file for flashing you may need to
explicitly tell the sections you want.
avr-objcopy -j .text -j .data -j .my_signature -O ihex prog.elf
prog.hex
works perfect! Thanks!
Maybe an additional question as I am using different controllers.
Is there any option to tell the linker something like
-Wl,--section-start=.my_signature=FLASH_END-0x50
This can be done easily in the linker script, but I did not want to take
a copy of the whole avr-libc/binutils installation to add a new section
in each of the .x files.
Some idea how I can "ask" for the last possible flash address of the
controller? Maybe by compiling some empty prog, picking a symbol from
elf, place it in the Makefile-variable and go for final link? Strange...
:) Sounds possible... I will also take a look...
Thanks
Klaus
- Version/Signature in Flash, Klaus Rudolph, 2022/01/18
- Re: Version/Signature in Flash, Michael Stocker, 2022/01/19
- Re: Version/Signature in Flash, Klaus Rudolph, 2022/01/19
- Re: Version/Signature in Flash, Michael Stocker, 2022/01/19
- Re: Version/Signature in Flash,
Klaus Rudolph <=
- Re: Version/Signature in Flash, Trampas Stern, 2022/01/19
- Re: Version/Signature in Flash, Jim Brain, 2022/01/19
- Re: Version/Signature in Flash, Michael Kwasnicki, 2022/01/19
- Re: Version/Signature in Flash, Jim Brain, 2022/01/19