Open gemesa opened 2 months ago
I believe this is actually a bug from aya-template
.
The error comes from the template generating #[uprobe]
with no arguments, which results in the error (the error itself is correct in that the ELF section name is reserved).
The template should have generated the proc macro to be #[uprobe(path="<attach>", function="<function>")]
, which produces a section name of uprobe/<path>:<function>
, which shouldn't result in a collision with uprobe
function name.
It seems that the chosen project name cannot be "uprobe" (at least when selecting uprobe as the program type) because the following error occurs. It is not a serious issue but I think it is worth mentioning.