Oleg Verych wrote on 20/01/08 10:13 MET: > @2008-01-19, Friedrich Lobenstock: > [] >> Let us now put the puzzle together and change our program in the following >> way when declaring the .vectors section: >> ; Interrupt Vector Table >> .section .vectors, "a" >> >> Note the added "Alloc" flag. > > Is it possible to do with `objcopy`? I've used this for some flash section: > > objcopy --set-section-flags .flashsection="alloc,code,readonly" -O elf32-avr > a.out out.elf
When I come to think again I ask myself why msp430-gcc does not mark this section correctly right away. Which file in the gcc source tells gcc which sections should get which flags per default? -- MfG / Regards Friedrich Lobenstock
