This is an in progress port of the elftoolchain work from quark.
Removes dependency from bmake(1) by adding a GNUMakefile
Cuts source code from 22M to 2M
Cuts sources from 2381 files to 81
Adds the necessary stubs to work with a new libbpf without any changes to libbpf
All local changes are under #ifdef ELASTIC
Since this is nasty and ungrateful work, I tried to split the commits to make this readable.
First one basically rm -rf contrib/elftoolchain, then import things verbatim, then import the interesting things. So if you're looking at this commit, ignore the first ones.
Once this is done, next step is cleaning up and updating libbpf, which should now work with this elftoolchain without any changes.
This is an in progress port of the elftoolchain work from quark.
Since this is nasty and ungrateful work, I tried to split the commits to make this readable. First one basically rm -rf contrib/elftoolchain, then import things verbatim, then import the interesting things. So if you're looking at this commit, ignore the first ones.
Once this is done, next step is cleaning up and updating libbpf, which should now work with this elftoolchain without any changes.