Spritetm / hadbadge2019_fpgasoc

FPGA SoC code and application example for Hackaday Supercon 2019 badge
Other
159 stars 70 forks source link

IPL elf loader doesn't handle __constructor__ or __destructor__ attributes #131

Open unwiredben opened 5 years ago

unwiredben commented 5 years ago

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.

Spritetm commented 5 years ago

Note that you can also do this outside of the elf loader by calling the constructors in apps-sdk/gloss/app_start.c .