driver list: introduce linker script
commit42de14a376ec26d4dae8800b07161b807f8877a3
authorGerhard Sittig <gerhard.sittig@gmx.net>
Tue, 9 May 2023 19:19:42 +0000 (9 21:19 +0200)
committerGerhard Sittig <gerhard.sittig@gmx.net>
Tue, 9 May 2023 20:25:39 +0000 (9 22:25 +0200)
tree51fa53becad0a2e743a69a5a7f7a15be367dfdd8
parent6fb64fd585ffc8013d4dccd4a885ea155a520004
driver list: introduce linker script

Introduce a drivers.ld linker script which collects an array of pointers
to structs which describe compiled in drivers. Collect the items in a
linker section and NULL terminate the list at link time. Hook up the
linker script to the automake build instructions (no cmake yet).

This script is based on work by Jiri Slaby. See sigrok.org bug 1433 and
its attachment 556.
Makefile.am
drivers.ld [new file with mode: 0644]