hadbadge2019_fpgasoc icon indicating copy to clipboard operation
hadbadge2019_fpgasoc copied to clipboard

IPL elf loader doesn't handle __constructor__ or __destructor__ attributes

Open unwiredben opened this issue 5 years ago • 1 comments

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.

unwiredben avatar Nov 17 '19 18:11 unwiredben

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

Spritetm avatar Nov 17 '19 19:11 Spritetm