On 1/19/2022 10:05 AM, Michael Kwasnicki wrote:
I am not sure if I got it right.
The linker is only involved until the .elf file has been created.
If the question is to pad out the content of the .hex file so it is
one continuous block then it can be done with :
avr-objcopy -j .text -j .data -j .my_signature *--gap-fill 0xFF* -O
ihex prog.elf prog.hex
The gap-fill argument fills the blanks with a specific value (0xFF in
this case).
You are correct. I thought the work was done in the linker. In the
above case, though, does the output have <code> <padded bytes up to max
code space> <my_signature>? That appears to be the requirement in the
resulting file.
Jim