hadbadge2019_fpgasoc
hadbadge2019_fpgasoc copied to clipboard
IPL elf loader doesn't handle __constructor__ or __destructor__ attributes
I tried to use the attribute((constructor)) to force my sin table init code to run before main(), but alas, the elf loader doesn't seem to process those. I might fix this, filing so I remember to look into this.
Note that you can also do this outside of the elf loader by calling the constructors in apps-sdk/gloss/app_start.c .