[PATCH] D93563: BPF: add extern func to data sections if specified
Alexei Starovoitov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 18 17:18:40 PST 2020
ast edited reviewers, added: anakryiko; removed: andriigrynenko.
ast added a comment.
Does it work already without specifying the section, right?
void foo1(int); // works ?
void foo2(int) __ attribute __((section("bar"))); // sort-of works, but this one goes into the same section as foo1 ?
If foo1 doesn't work, then "if (F->hasSection())" is incorrect. Both of the above should produce some BTF.
Assuming, of course, that both foo1 and foo2 are used in the code and there are relocations against them.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93563/new/
https://reviews.llvm.org/D93563
More information about the llvm-commits
mailing list