Re: [Patch, avr] Shrink interrupt vector table down to last used entry
Georg-Johann Lay <[email protected]>
| Newsgroups | gmane.comp.hardware.avr.gcc |
|---|---|
| Message-ID | <[email protected]> |
Senthil Kumar Selvaraj wrote: > > Like the others said, the patch does not change the default behavior > for unhandled interrupts - they still branch to __bad_interrupt. The > user would have to explicitly use the --shrink-ivt option to change > that - at which point, I guess he should be knowing what he's doing. If the feature is off per default, that should be enough to make it a "safe" feature. User will know what options they are activating. What I don't like is the "--shrink-ivt", I'd rather prefer something less cryptic like "--shrink-vectors" or "--optimize-vectors" or similar. One technical question: Does this really need binutils changes, or could it be achieved by linker script improvements, e.g. start .text after the last .vector? Currently the size of .vectors is forced by crt.o, but maybe there are other way to do it? Johann