lnls-dig / halcs

Hardware Abstraction Layer for Control Systems
GNU General Public License v3.0
1 stars 4 forks source link

[CLOSED] [smio] [llio] Insert different smio and llio modules to a global table #109

Closed lerwys closed 8 years ago

lerwys commented 8 years ago

Issue by lerwys Saturday Oct 17, 2015 at 20:54 GMT Originally opened as https://github.com/lnls-dig/bpm-sw/issues/109


Problem: When adding a new module, we need to explicitly search for it by name.

Solution: Create an init function to export the symbols into a global table (linked list) and sear ch by the module by an identifier or name

lerwys commented 8 years ago

Comment by lerwys Tuesday Jan 05, 2016 at 16:34 GMT


We could use something like this:

https://github.com/lnls-dig/afcipm/commit/5479824ec515480ec46bdf90cac320969d9d920d

and adding our section like this:

http://stackoverflow.com/questions/6877922/injecting-sections-into-gnu-ld-script-script-compatibility-between-versions-of

lerwys commented 8 years ago

Comment by lerwys Saturday Jan 30, 2016 at 13:05 GMT


Done in branch smio-table linker commits from d1edf01d8a8ab9685c06677d4039e41dd1cca668 to aed79199d2bd46b8fb2bb9594236af7147f6bf86