in the last days I tried to build the following plugin:
It is used to move the vtables of the AVRs into the .progmem instead of .rodata section. The plugin is simply used as compiler Parameter -fplugin=avr-flash-vtbl.so. Unfortunately the path to the plugin has to be absolute. At least, that's the way it was working for me. Perhaps someone can confirm the opposite.
But to build and use the plugin, the compiler had to be configured and compiled with the --enable-plugin. This took some time. For this I used the script from AVR-GCC 11.1.0 for Windows 32 and 64 bit – Zak's Electronics Blog ~* only the option mentioned above was added. After that I still had some troubles with the
plugin. To spare the others, I'll put compiler and the plugin. The plugin is located directly in the archive. Under Linux I did not test the plugin. If someone tried a feedback would be helpful!
Here are compiler Avr-Gcc 9.2.0 and plugin for Linux and Windows:
Best regards Andreas