dlbeer / mspdebug

Debugging tool for MSP430 MCUs
GNU General Public License v2.0
184 stars 80 forks source link

Increase limit on number of ELF program / section headers #88

Closed thiloschulz closed 4 years ago

thiloschulz commented 4 years ago

When defining a greater number of interrupts (~ > 26) in your program and compiling with TI's own mspgcc toolchain, the command "prog x.elf" fails with "elf32: too many program headers". Apparently, each interrupt gets their very own 2 bytes long section so that you will exceed the hard coded Limit of 32 program headers. I have increased these hard-coded limits slightly.